Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class boxtype {
  3. public static void main(String args[]) {
  4. String[] melee = {"Crowbar", "Bowie Knife", "Butterfly Knife", "Knuckleduster"};
  5. String[] pistol = {"Colt .22", "Magnum .45", "P250", "9mm Pistol"};
  6. String[] assault = {"AK47", "M4A1", "M16", "SMG", "Mac10", "Minigun (HGE)"};
  7. String[] shotgunsniper = {"Shotgun", "Benelli S90", "Sniper Rifle"};
  8. String[] attachments = {"Laser Sight", "Silencer", "Scope", "Auto-target"};
  9. Scanner scan = new Scanner(System.in);
  10. String xy = scan.nextLine();
  11. if (xy.equals("spyclass")) {
  12. spyClass();
  13. }
  14.  
  15. }
  16. private static void spyClass(String[] assault, String[] attachments, String[] pistol) {
  17. // TODO Auto-generated method stub
  18. System.out.println("Spy class: ");
  19. System.out.println("Primary weapon: " + assault[2] + " + " + attachments[2]);
  20. System.out.println("Secondary weapon: " + pistol[1] + " + " + attachments[2]);
  21. System.out.println("");
  22. }
  23.  
  24. }
  25.  
  26. if (xy.equals("spyclass")) {
  27. spyClass(assault, attachments, pistol);
  28. }
  29.  
  30. spyClass();
  31.  
  32. spyClass(assault, attachments, piston);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement