Results 1 to 6 of 6
- 05-12-2011, 09:25 PM #1
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
Error: "Illegal start of expression"
When I compile this script, it sends me an error, "Illegal start of expression", on the 4th line of the next script:
public void timeTick()
{
minutes.increment();
if(minutes.getValue() == 0) && (hours.value < 11)// it just rolled over!
hours.value = hours.value + 1;
updateDisplay();
}
What's wrong here??? please helppp!
- 05-12-2011, 09:34 PM #2
where does minutes, hours come from? please post all the code used in timeTick().
- 05-12-2011, 09:36 PM #3
Senior Member
- Join Date
- Oct 2010
- Location
- Germany
- Posts
- 780
- Rep Power
- 4
you close the if statement early :D
if(minutes.getValue() == 0) && (hours.value < 11)
--->
if(minutes.getValue() == 0 && hours.value < 11)
- 05-12-2011, 09:38 PM #4
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
- 05-12-2011, 09:40 PM #5
Member
- Join Date
- May 2011
- Posts
- 2
- Rep Power
- 0
- 05-12-2011, 09:42 PM #6
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Mine and his were really the exact same thing, it may be easier to group up and separate conditions as I did though.
Similar Threads
-
"illegal start of expression"
By 3RDofApril in forum AWT / SwingReplies: 2Last Post: 11-04-2010, 01:39 AM -
Illegal start of expression error pls help me!
By Gayethiri_86 in forum New To JavaReplies: 12Last Post: 05-12-2010, 03:06 PM -
Illegal start of expression error
By lukermsdn111 in forum New To JavaReplies: 9Last Post: 03-22-2010, 01:31 PM -
Servlet Error -illegal start of expression
By raghu9198 in forum Java ServletReplies: 2Last Post: 04-21-2009, 11:12 PM -
How do you start a Java program from the "Start" menu under Windows?
By ScottVal in forum New To JavaReplies: 5Last Post: 03-20-2009, 10:04 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks