title: How to call a class, Java - Eclipse
body: <p>I'm making a text based gladiator combat game. The problem I'm having is that it's not going into the other class when I try to call it. This is what I have.</p>
  
  <p><strong>Main Class</strong></p>
  
  <pre><code>if (fill.equals("1")) {
      arena = true;
      while (arena == true) {
          System.out.println("You travel to the arena.");
          fill = scan.next();
          System.out.println("Vanguard: Welcome!");
          System.out.println("1) Enter the arena.");
          System.out.println("2) Exit the arena.");
          fill = scan.next();
          if (fill.equals("1")) {
              System.out.println("Vanguard: These are the available matches:");
              if (rank == "Rookie") {
                  System.out.println("1) Snow");
                  System.out.println("2) Blaze");
                  System.out.println("3) Ember");
                  fill = scan.next();
  
                  if (fill.equals("1")) {
                      System.out.println("You with to battle Snow? Y/N");
                      fill = scan.next();
                      fill = fill.toLowerCase();
                      if (fill.equals("y")) {
                          enemy = "Snow";
                          enemyhealth = 35;
                          enemydamage = enemydamrn.nextInt((7 - 5) + 1) + 5;
                          System.out.println("You go to the arena to prepare with snow.");
  
                          Battle Battle = new Battle();
                      }       
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p><strong>When I type "y" into the scanner, it will just restart at the while statement, instead of going to the class.</strong></p>
  
  <p>I would appreciate any help I can get with this. I'm pretty new to java, I've been coding with it for about 1.5 months and I would like to be able to find out this issue. I hope any of you could help me! ^_^/</p>