package com.company;
import java.lang.reflect.Type;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner nameInput = new Scanner(System.in);
System.out.printf("As of right now I noticed you have not selected a weapon. Please choose from the following selections that I recommend, I current have no information on your shooting style.\nSo these recommendations are based souly on beginner levels.");
System.out.printf(Gun.Type);
}
}
Then the other one. Guns.Java
import java.io.PrintStream;
class Guns {
public String Type() {
return gunList;
}
public String gunList(){
String Arctic = "Arctic Warfare (L96A1)";
String secondArctic = "Arctic Warfare Magnum";
String AW50 = "AW50";
String AS50 = "AS50";
System.out.printf(" %s \n %s\n %s\n %s \n", Arctic, secondArctic, AW50, AS50);
}
}
This is just for fun and also to learn faster. Im trying to display a list of the Guns the user is order to use then after I get the printf done I was going to make a input thing (not sure what that is yet idk if I forgot or wasnt taught) then store it in another String in the main CS. But im not sure what im doing wrong here.
I just want to post the Gun list on the printf on the first page using the method I learned from Treehouse.come but cant figure it out for whatever reason.