PROGRAMMING AND CODE


Assignemnt #15

Code

  /// Name: Justin Li
  /// Period 7
  /// Program Name: Using Variables
  /// File Name: UsingVariables.java
  /// Date Finished: //

  class UsingVariables {
  
      public static void main(String[]args) {
          
          
          int room;
          double nanka;
          String pickle;
          
          room = 106;
          nanka = 1.23;
          pickle = "bob";
          
          System.out.println("The room number is " + room);
          System.out.println("I like the number " + nanka);
          System.out.println("I named my pickle " + pickle);

          
          
      }
  }
    

Picture of the output

Assignment 1