0
public class Damascus{
  public static void main(String[] args) {

    Scanner input = new Scanner (System.in);
    AssaultRifles fal = new AssaultRifles("FAL",99,621,45,160,75,25,45,180,5,110,23);

switch (secondChoice) {
          case 'n':
          changeS = input.nextLine();
          fal.setName(changeS);
          System.out.println("Name changed to: "+fal.getName);
          break;
//i want the change to be there when i run the program again
PM 77-1
  • 12,933
  • 21
  • 68
  • 111

0 Answers0