Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class boxtype {
- public static void main(String args[]) {
- String[] melee = {"Crowbar", "Bowie Knife", "Butterfly Knife", "Knuckleduster"};
- String[] pistol = {"Colt .22", "Magnum .45", "P250", "9mm Pistol"};
- String[] assault = {"AK47", "M4A1", "M16", "SMG", "Mac10", "Minigun (HGE)"};
- String[] shotgunsniper = {"Shotgun", "Benelli S90", "Sniper Rifle"};
- String[] attachments = {"Laser Sight", "Silencer", "Scope", "Auto-target"};
- Scanner scan = new Scanner(System.in);
- String xy = scan.nextLine();
- if (xy.equals("spyclass")) {
- spyClass();
- }
- }
- private static void spyClass(String[] assault, String[] attachments, String[] pistol) {
- // TODO Auto-generated method stub
- System.out.println("Spy class: ");
- System.out.println("Primary weapon: " + assault[2] + " + " + attachments[2]);
- System.out.println("Secondary weapon: " + pistol[1] + " + " + attachments[2]);
- System.out.println("");
- }
- }
- if (xy.equals("spyclass")) {
- spyClass(assault, attachments, pistol);
- }
- spyClass();
- spyClass(assault, attachments, piston);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement