Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class JavaVariable {
- public static void main(String args[]){
- int age;
- int grade=10;
- float weight;
- String name = "John";
- char gender = 'M';
- age = 18;
- weight = (float) 65.5;
- System.out.println("Name: "+ name);
- System.out.println("Age: "+age);
- System.out.println("Weight "+weight);
- System.out.println("Gender "+gender);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement