title: How to find greatest number
body: <p>How to compute the greatest number and display it?</p>
  
  <pre><code>import java.util.Scanner;
  
  public class GreatestNumber {
  
    public static void main(String[] args) {
      int [] num = new int [10];
      int counter;
      int max = 0;
  
      Scanner read = new Scanner(System.in);
  
      for (int i=0; i&lt;num.length; i++)
      {
          System.out.print("Enter StaffID to be edited:");
          num[i]=read.nextInt();
      }
    }
  }
  </code></pre>