You are viewing a single comment's thread. Return to all comments →
instead use the new java 8 features
... import java.time.LocalDate; ... //String month = in.next(); int mm = in.nextInt(); //String day = in.next(); int dd = in.nextInt(); //String year = in.next(); int yy = in.nextInt(); in.close(); LocalDate dt = LocalDate.of(yy, mm, dd); System.out.print(dt.getDayOfWeek());
that's all
Seems like cookies are disabled on this browser, please enable them to open this website
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
instead use the new java 8 features
that's all