• Post Reply Bookmark Topic Watch Topic
  • New Topic

Debugging2  RSS feed

 
Kerry Cotter
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
class Shuffle1 {
public static void main(String [] args) {

int x = 3;
while (x > 0) {

if (x>2) {
System.out.print ("a");
}

x = x-1;
System.out.print("-");


if (x == 2) {
System.out.print("b c");
}

if (x == 1) {
System.out.print("d");
x = x-1;
}
}
}
}

JAVAC RESULTS

error: Class names, 'Shuffle1', are only accepted if annotation processing is explicitly requested
1 error
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick google search of that error message found this
 
Joel Christophel
Ranch Hand
Posts: 250
1
Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stuart A. Burkett wrote:A quick google search of that error message found this


In other words, add .java to the filename when compiling.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!