the line that includes the static scanner and the next line.
it says inner classes cannot contain static declarations.
User Profile
Collapse
-
i am not able to declare an array and proceed as it shows errors. Pardon me for the codes as I'm still working on it.Leave a comment:
-
program to calculate gross salary
import java.util.*;
class emp
{
int eno;
String ename;
int ddob, mdob, ydob, ddoj, mdoj, ydoj, yoe, cyear;
double basic, hra, trans, medi, cbonus, ded, gsal;
double cbonus( int yoe)
{
if(yoe>=10)
cbonus=basic*0. 10;
else if(yoe>=5 && yoe<=9)
cbonus=basic*0. 07;
else if(yoe>=2 && yoe<=4)
cbonus=basic*0. 05;...
No activity results to display
Show More
Leave a comment: