Code:
Output:
note:
whatever you type into the System.out.println() that will be the output.It also lead to a new line no need to use \n
Code:
note
also try and see \t \' \" \? into System.out.println()note
this code should be in the all programmeclass : class kyword is used to declare classes in Java
class name should start with Capital letter.
ClassnName Should be the same name of saved java file
(this java File name "HelloWord.java")
No comments:
Post a Comment