Created
October 12, 2012 13:09
-
-
Save applegateaustin/3879120 to your computer and use it in GitHub Desktop.
KUStudent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class KUStudentTest { | |
public static void main(String[] args){ | |
Scanner keyboard = new Scanner(System.in); | |
KUStudent name = new KUStudent(); | |
KUStudent info = new KUStudent(); | |
System.out.println("Please input the student's name (firstname lastname):"); | |
String fname = keyboard.next(); | |
String lname = keyboard.next(); | |
name.set_name(fname, lname); | |
System.out.println("Please input the student's KUID and department"); | |
String kuid = keyboard.next(); | |
String dpt = keyboard.next(); | |
info.set_kuinfo(kuid, dpt); | |
System.out.println("Student: " + fname + " " + lname); | |
System.out.println("KUID: " + kuid); | |
System.out.println("Department: " + dpt); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment