Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

basic pay

Language: Editor: Layout:
+ ] Show input
Compilation time: 0.83 sec, absolute service time: 0,85 sec 
edit mode |  history  | discussion
Error(s), warning(s):
source_file.java:3: error: class employee is public, should be declared in a file named employee.java
public class employee
       ^
source_file.java:12: error: cannot find symbol
emph=in.nextLine();
       ^
  symbol:   method nextLine()
  location: variable in of type BufferedReader
source_file.java:13: error: cannot find symbol
basic=in.nextLine();
        ^
  symbol:   method nextLine()
  location: variable in of type BufferedReader
source_file.java:17: error: cannot find symbol
gp=gp-pf;
^
  symbol:   variable gp
  location: class employee
source_file.java:17: error: cannot find symbol
gp=gp-pf;
   ^
  symbol:   variable gp
  location: class employee
source_file.java:19: error: cannot find symbol
System.out.println("Grosspay=Rs"+gp);
                                 ^
  symbol:   variable gp
  location: class employee
source_file.java:20: error: cannot find symbol
System.out.println("Netpay=Rs"+hp);
                               ^
  symbol:   variable hp
  location: class employee
7 errors