FIND YOUR NEXT FEW LINES
Results for “date arithmetic”
Small, practical examples. Search by task or narrow things down below.
292 snippets foundClear filters
Sum integer values
Reduce a Java integer stream to its sum.
Java✓ Tested
Swap two integers
Use a temporary value to swap C integers without arithmetic overflow.
C✓ Tested
Use an automatically removed temporary file
C: tmpfile creates a binary update stream whose file is removed when closed.
C✓ Tested
Use an optional fallback
Use Optional.orElse to provide a default for a missing Java value.
Java✓ Tested