MrDoyle

Using Variables

Aug 22nd, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.        int room = 113;
  5.        double decimal = 2.71828;
  6.        String subject = "computer Science";
  7.  
  8.         System.out.println();
  9.         System.out.println("This is room # " + room);
  10.         System.out.println("e is close to " + decimal);
  11.         System.out.println("I am learning a bit about " + subject);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment