Created
November 13, 2017 16:04
-
-
Save PocasPedro/9621a8446479a1a50612c01dcf31d126 to your computer and use it in GitHub Desktop.
Java Fundamentals for Kids - Exercise 26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.*; | |
/* | |
Program that shows in terminal today's date | |
*/ | |
public class Today { | |
public static void main(String[] args) { | |
LocalDate today = LocalDate.now(); | |
System.out.println("Today's date is: " + today.getDayOfMonth() + "-" + today.getMonthValue() + "-" + today.getYear() + "!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment