Posted By

AustinGoods on 10/27/18


Tagged


Versions (?)

Tex


 / Published in: Java
 

sds

  1. public class TexasUniversities{
  2.  
  3. public static void main(String []args){
  4. System.out.println("Class 1 by Jacolby Goods\n");
  5.  
  6. College txState = new College();
  7. College txTech = new College();
  8.  
  9. txState.students = 38808;
  10. txState.campusSize = 491;
  11. txState.gradRate = 55.5;
  12.  
  13. System.out.println("Texas State has an enrollment size of " + txState.students + "undergrad students");
  14.  
  15. txTech.students = 37335;
  16. txTech.campusSize = 1839;
  17. txTech.gradRate = 59.1;
  18. }
  19.  
  20. class College {
  21. int students;
  22. int campusSize;
  23. double gradRate;
  24. }
  25.  
  26. }

Report this snippet  

You need to login to post a comment.