andari3107

DataType

Jul 9th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. public class DataType {
  2.     public static void main(String[]args) {
  3.         String MyString = "Assalamualaikum";
  4.         char MyChar = 'A';
  5.         int MyInt = 31;
  6.         float MyFloat = 7;
  7.         short MyShort = 2000;
  8.         boolean MyBool = true;
  9.         System.out.println(MyString);
  10.         System.out.println(MyChar);
  11.         System.out.println(MyInt);
  12.         System.out.println(MyFloat);
  13.         System.out.println(MyShort);
  14.         System.out.println(MyBool);
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment