Package com.jm.java.College

Examples of com.jm.java.College.Student


    try {
      index = Integer.parseInt(bufferedReader.readLine());

      // index = scanner.nextInt();
      Student student;
      if (index < college.getStudents().size()) {
        System.out.print("Name : ");
        student = college.getStudents().get(index);
        student.setName(bufferedReader.readLine());
        System.out.print("Age :");
        student.setAge(Byte.parseByte(bufferedReader.readLine()));
        // student.setName(scanner.nextLine());
        // student.setAge(scanner.nextByte());
      } else {
        System.out.print("Invalid index....");
      }
View Full Code Here

TOP

Related Classes of com.jm.java.College.Student

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.