/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.*;
import java.time.format.*;
import java.time.temporal.ChronoUnit;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String strDate
= "30/08/2016"; DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy");
LocalDate dataVencimento = LocalDate.parse(strDate, formatter);
LocalDate dataHoje = LocalDate.now();
long daysBetween = ChronoUnit.DAYS.between(dataHoje, dataVencimento);
System.
out.
println(daysBetween
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnRpbWUuKjsKaW1wb3J0IGphdmEudGltZS5mb3JtYXQuKjsKaW1wb3J0IGphdmEudGltZS50ZW1wb3JhbC5DaHJvbm9Vbml0OwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCSAgU3RyaW5nIHN0ckRhdGUgPSAiMzAvMDgvMjAxNiI7CgkgIERhdGVUaW1lRm9ybWF0dGVyIGZvcm1hdHRlciA9IERhdGVUaW1lRm9ybWF0dGVyLm9mUGF0dGVybigiZGQvTU0veXl5eSIpOwoJICBMb2NhbERhdGUgZGF0YVZlbmNpbWVudG8gPSBMb2NhbERhdGUucGFyc2Uoc3RyRGF0ZSwgZm9ybWF0dGVyKTsKCSAgCgkgIExvY2FsRGF0ZSBkYXRhSG9qZSA9IExvY2FsRGF0ZS5ub3coKTsKCSAgCgkgIGxvbmcgZGF5c0JldHdlZW4gPSBDaHJvbm9Vbml0LkRBWVMuYmV0d2VlbihkYXRhSG9qZSwgZGF0YVZlbmNpbWVudG8pOwoJCQoJICBTeXN0ZW0ub3V0LnByaW50bG4oZGF5c0JldHdlZW4pOwoJfQp9