write a java program to display your name and class and school name with BlueJ
Answers
Answered by
4
Required Answer:-
Question:
- Write a Java program to display your name and class and school name.
Solution:
Here comes the program.
public class Info {
public static void main(String[] args) {
System.out.println("Name: <name>");
System.out.println("Class: <class>");
System.out.println("School: <school>");
}
}
Note: Replace <name>, <class> and <school> with your name, class and school.
Refer to the attachment for output ☑.
Attachments:
Similar questions