/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.* ;
import java.time.temporal.* ;
import java.time.format.* ;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
LocalDate anchor = LocalDate.of( 2015 , Month.FEBRUARY , 2 );
LocalDate feb5 = LocalDate.of( 2015 , Month.FEBRUARY , 5 );
LocalDate feb8 = LocalDate.of( 2015 , Month.FEBRUARY , 8 );
LocalDate feb9 = LocalDate.of( 2015 , Month.FEBRUARY , 9 );
System.
out.
println( feb5
+ " is in week # " + ( ChronoUnit.
WEEKS.
between( anchor , feb5
) + 1 ) ); System.
out.
println( feb8
+ " is in week # " + ( ChronoUnit.
WEEKS.
between( anchor , feb8
) + 1 ) ); System.
out.
println( feb9
+ " is in week # " + ( ChronoUnit.
WEEKS.
between( anchor , feb9
) + 1 ) );
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLiogOwppbXBvcnQgamF2YS50aW1lLnRlbXBvcmFsLiogOwppbXBvcnQgamF2YS50aW1lLmZvcm1hdC4qIDsKCgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoKICAgICAgICBMb2NhbERhdGUgYW5jaG9yID0gTG9jYWxEYXRlLm9mKCAyMDE1ICwgTW9udGguRkVCUlVBUlkgLCAyICk7CgogICAgICAgIExvY2FsRGF0ZSBmZWI1ID0gTG9jYWxEYXRlLm9mKCAyMDE1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