How do I list a class schedule in Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I list a class schedule in Java

I am new to programming I must write a program that displays my class name, course number and Time I have the class. I have 4 classes and I have not idea how to do this . just started school today and this was the first assignment. can anyone help.?

23rd Jan 2017, 5:10 AM
C. Mac
1 Answer
0
in java, inorder to perform an output on the "console"(most basic form of output) - you have a "command' called println Its syntax is : System.out.println("what I want to print"); Inorder to do as you were asked for, you could write the relevant information for each class in its own println command. It important to point out, that println will go down a line at the end of the input. if you would like not todo so - you could use the print command instead. its syntax is : System.out.print("what I want to print");
23rd Jan 2017, 5:51 AM
shay lempert
shay lempert - avatar