Home Tutorialhelp Allcomments Java Java Get Example Java Illegal Startof Expression

 
 

Comments

 
User Comments for the tutorial:

Java error illegal start of type



Comments

i need help as soon as possible!!!!!!!!! please
i am new in java and i am writing a program in java that calculates employees payments but i get illigal start in line 3 here is my program : class WeeklyPay { public static void main(String[] arguments) { public static void pay(do 

problem
public class Testing { int x = 3, p = 5, y = -8; switch(x) { case 2: p++; case 3: case 4: y+=(--p); break; case 5: y+=(p++); } System.out.println(y); } can someone tell me wat is wrong 

Related Tutorial and Articles

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.