waltbaby315
asked on
error while compliling
I get this error while compiling, can anyone help?
import java.util.*;
public class walt24
{
public static void main(String[] args)
{
int x = 7;
int p=10;
switch (x)
{
case 1: p=15; break;
case 2: p=25; break;
case 3: p=30; break;
case 4: p=35; break;
case 5: p=40; break;
System.out.print(p);
}
walt24.JPG
import java.util.*;
public class walt24
{
public static void main(String[] args)
{
int x = 7;
int p=10;
switch (x)
{
case 1: p=15; break;
case 2: p=25; break;
case 3: p=30; break;
case 4: p=35; break;
case 5: p=40; break;
System.out.print(p);
}
walt24.JPG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.