/* Since java is a case sensitive language so be careful while declaring any variables , functions or classes
in this program i will tel you how to declare a variable a simple variable */
class parent {
public static void main(String args[]) {
/* since arsi is my nick name so thats y am using arsi as a variable :) , i hope u will choose some
gud variable name */
int arsi;
arsi = 6 ;
/* you will notice that i used 3 system.out.print at lines but all the code u will see in the same line
bcoz i used print not println , if i used println the it will at each different line */
System.out.print("i want ");
System.out.print(arsi);
System.out.print(" movies");
}
}
/* Follow me on :
www.facebook.com/arslan.aliawan
@arslanaliawan2 (twitter)
*/
in this program i will tel you how to declare a variable a simple variable */
class parent {
public static void main(String args[]) {
/* since arsi is my nick name so thats y am using arsi as a variable :) , i hope u will choose some
gud variable name */
int arsi;
arsi = 6 ;
/* you will notice that i used 3 system.out.print at lines but all the code u will see in the same line
bcoz i used print not println , if i used println the it will at each different line */
System.out.print("i want ");
System.out.print(arsi);
System.out.print(" movies");
}
}
/* Follow me on :
www.facebook.com/arslan.aliawan
@arslanaliawan2 (twitter)
*/
No comments:
Post a Comment