Sorry for the noob question

Discussion in 'Plugin Development' started by ZodiacTheories, Dec 15, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ZodiacTheories

    First of all, the title is pretty self explanatory. So basically, I stopped plugin development a couple of months ago, when all the staff left, but I want to go back into it. I remember most of my 'knowledge' but one thing that I just can't work out is a plain Java question, which is pretty basic.

    Please don't comment saying 'learn java' and instead could you please just answer :3

    So, my question is, if I had a Scanner object, and did this:

    Code:
    Scanner s = new Scanner(System.in);
    
    String string = s.nextLine();
    //do some stuff
    String string2 = s.nextLine();
    would string2 now become the value of s.nextLine(), or would I need a new Scanner object?

    Thank you for taking your time, and hopefully somebody can answer by nooby question ;D
     
  2. Offline

    Rocoty

    Try it and find out...
     
  3. Offline

    ZodiacTheories

Thread Status:
Not open for further replies.

Share This Page