Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Java Java Get Example Java Illegal Startof Expression

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

2 comments so far (post your own) View All Comments Latest 10 Comments:

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

Posted by john on Monday, 11.2.09 @ 17:11pm | #92269

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(double basepay, int hours){
if (basepay < 5.00)
{
System.out.println("error");
} else {
if (hours > 60){

System.out.println("error");
} else {
int overtime = 0;
if ( hours > 40) {

overtime = hours - 40;
}
double pay = basepay * hours;
overtimepay = overtime * basepay * 1.5 ;

totalpay + = ( pay + overtimepay ) ;
System.out.println( " the employee is paid " + totalpay );
}
}
}
pay( 7.50 , 35 );
pay( 8.20 , 47 );
pay( 10.00, 73 );

}
}

Posted by kj on Tuesday, 02.17.09 @ 13:19pm | #84937

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.