Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. import java.util.HashMap;
  2.  
  3.  
  4. public class Node {
  5. HashMap <Node,Classification>coursemate;
  6. HashMap <Node,Major>course;
  7. HashMap <Node,Hometown>town;
  8.  
  9. int name;
  10. Classification classification;
  11. Major major;
  12. Music music;
  13. Hometown homeTown;
  14. Nationality nationality;
  15.  
  16. public Node(int name, Classification classification, Major major, Music music){
  17. this.name=name;
  18. this.classification = classification;
  19. this.major = major;
  20. this.music = music;
  21.  
  22. }
  23.  
  24. public void ClassifyNode(Node name){
  25.  
  26.  
  27. }
  28.  
  29. public String toString(){
  30. return name+" | "+ classification + " | " + major+" | "+ music;
  31. }
  32. }
  33.  
  34.  
  35. enum Classification{
  36. Freshman,Sophmore,Junior,Senior,
  37. }
  38.  
  39. enum Major{
  40. ComputerScience,Biology,Psychology,PoliticalScience,Music
  41. }
  42.  
  43. enum Music{
  44. Rap,RnB,Jazz,Rock,Pop,other
  45. }
  46.  
  47. enum Hometown{
  48. NAshville,Memphis,Atlanta,Chicago,LA
  49. }
  50.  
  51. enum Nationality{
  52. American,Nigerian,Bahamian,Jamaican,Nepalese, Other
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement