0% found this document useful (0 votes)
16 views

Java Code

Uploaded by

nagendra
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Java Code

Uploaded by

nagendra
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

[12:27 PM] Sandhya Singh

public class Hello1 {

public static void main(String[] args) {


// TODO Auto-generated method stub
String name ="John";
char alph ='A';
int numFirst = 5;
int numSecond = 6;
int Result = numFirst + numSecond;
System.out.println("Name: "+ name);
System.out.println("Alphabet: "+ alph);
System.out.println("numFirst: "+ numFirst);
System.out.println("numSecond: "+ numSecond);
System.out.println("============================");
System.out.println("Result : "+ Result);

}
}

You might also like