PROGRAMMING AND CODE


Assignemnt #12

Code

  /// Name: Justin Li
  /// Period 7
  /// Program Name: VariablesAndNames
  /// File Name: VariablesAndNames.java
  /// Date Finished: //

 class VariablesAndNames {
  
      public static void main(String[]args) {
      
          
          int cars, space_in_cars;
          // cars and "space in cars" are variables also "." doesn't work with int
          cars = 100;
          space_in_cars = 5;
          
          System.out.println("There are " + cars + " cars here");
          System.out.println("There are " + space_in_cars + " spaces");
                        

          
      }
  }
    

Picture of the output

Assignment 1