title: Java public static boolean method
body: <p>I want to make a little program which will ask for two numbers first, checks whether they are good or not using a method, and then, after having the last number, prints out the result of the method. (yes you win, no you lose).</p>
  
  <p>I compared this with other questions on here, but somehow I can't get it to work. I made the luckyNumbers inside the method, outside the method, even bought "Big Java" but I'm stuck on this now.</p>
  
  <p>Help would be very appreciated!</p>
  
  <pre><code>package wtf;
  
  import Java.util.Scanner;
  /**
   *
   * @author Darl
   */
  public class WTF {
  public static int luckyNumber;
  public static int secondLuckyNumber;
  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) {
  
      Scanner sc = new Scanner(System.in);
      System.out.println("Give me a number between 0 and 100 to win a prize. ");
      luckyNumber = sc.nextInt();
  
      System.out.println("Give me another number between 100 and 200.");
      secondLuckyNumber = sc.nextInt();
  
  }
  
  public static boolean hasLuckyNumber(int luckyNumber, int min, int max){
      min = 20; //all winning tickets from 20 till 60
      max = 60;
      if (luckyNumber &gt; min || luckyNumber &lt; max) {
          System.out.println("Unfortunatly, no prize");
      }else{
          System.out.println("You've got a prize!");
      }
  }
  
  public static boolean hasSecondLuckyNumber(int secondLuckyNumber, int min, int max){
      min = 140; // all winning tickets from 140 till 175
      max = 175;
      if (secondLuckyNumber &gt; min || secondLuckyNumber &lt; max){
          System.out.println("Sad face");
      }else{
          System.out.println("We've got a winner!");
      }
      }
  }
  </code></pre>