Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public class JavaVariable {
  2. public static void main(String args[]){
  3. int age;
  4. int grade=10;
  5. float weight;
  6. String name = "John";
  7. char gender = 'M';
  8. age = 18;
  9. weight = (float) 65.5;
  10. System.out.println("Name: "+ name);
  11. System.out.println("Age: "+age);
  12. System.out.println("Weight "+weight);
  13. System.out.println("Gender "+gender);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement