Java #41:Using Local Date to Print out the Calendar Date (YYYY/MM/DD)

—–Screenshot of Code——

—————-Full Source Code——————-
//Programmer: Akinwale Owi
//Company: Dagba Computers
//Program Purpose: Use the LocalDate function to print the calendar date

package dagbacomputers;

/**
*
* @author Akin
*/

//imports
import java.time.LocalDate;

public class DagbaComputers {

/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
//Printing out today’s date date, the .now makes it today’s date
System.out.printf(“Today’s Date is: ” + LocalDate.now() + “\n”);

//Rallying the troops
System.out.printf(“Let’s ball” + “\n”);
}//End of Main
}//End of DagbaComputers Class

———–End of Program—————–
—————Output——————-

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: