Facebook
From Rude Anoa, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 196
  1.     Date date = new Date();
  2.     Instant instant = date.toInstant();
  3.     ZoneId defaultZoneId = ZoneId.systemDefault();
  4.     LocalDate localDate = instant.atZone(defaultZoneId).toLocalDate();
  5.    
  6.             Osoba o = new Osoba("Bonzo", LocalDate.of(1998, Month.MARCH, 13));
  7.         Osoba o2 = new Osoba("Haker", LocalDate.of(1998, Month.MARCH, 13));
  8.