1 Reply Latest reply on Oct 22, 2008 12:17 PM by 807589

    User to call the name on a linked list from the console

      My program has 9 linked lists and I need to manipulate them depending on which one the user wants to add or remove from. The problem is it's different every time. I need a way to allow the user to input the name of one of the linked lists, and then from there I can manipulate that list. My general idea is as follows though the syntax is wrong.
      inputFrom = in.nextLine();
      inputFrom = inputFrom.toUpperCase();
      if (inputFrom.peek() != null){
      System.out.println("This list has data);
      My problem is that in that if statement I can not simply place the variable in front of the action I wish to perform and expext the variable to substitute for the actual list's name. How can I work around this? Thank you in advance.