title: Illegal character error when compiling simple hasse algorithm program in java
body: <p>I cant seem to figure out why the below code won't compile. I get up an error for the line saying: <code>if ((number % 2) ==  0) {</code>. The error message says: "illegal character". The program is supposed to take a number n. If the n == to 1, the program stops. If n is odd it, then the new n == (n*3)+1. If n is even, new n == n/2.</p>
  
  <pre><code>import java.util.Scanner; 
  import java.lang.Math.*; 
  
  public class HasseAlgoritme {
  
  public static void main(string [] args) {
   Scanner tastatur = new Scanner(System.in); 
  
   System.out.print("Input the first starting number"); 
   int number = tastatur.next(); 
  
   while (number != 1) { 
    System.out.print(number);        
        if ((number % 2) ==  0) {       
          System.out.println(number);
        }          
        else {
          number = (number*3)+1; 
          System.out.print(number); 
        }              
   } 
  }}
  </code></pre>