Print Your Name In Java - CodexRitik

Print Your Name In Java Program

  • Code :
public class HelloRitik {
    public static void main(String[] args){
        System.out.println("CodexRitik");
    }
}


  • Explanation:
You have to first define a class of program. you can make a class which is your program name.

Example  : HelloRitik.java      #this is your file name and also a class name.


  • Image View
                                                                
First Java Programs



Print Your Name In Java - CodexRitik Print Your Name In Java - CodexRitik Reviewed by CodexRitik on July 10, 2020 Rating: 5

1 comment:

Powered by Blogger.