title: Android new object class
body: <p>I'm trying to make a new "Time" class,</p>
  
  <p>time.java</p>
  
  <pre><code>public class Time{ 
      public int hour,minute;
      public double second;
  
      public Time(){
          super();
      }
  }
  </code></pre>
  
  <p>main_activity.java</p>
  
  <pre><code>Time newT = new Time();
  newT.hour = 3;
  </code></pre>
  
  <p>but i get an error here:     newT.hour</p>
  
  <p>error (in eclipse) "Syntax Error on token "hour", Variabledeclaratorid Expected after this token"</p>