import java.util.Scanner;
public class array_Project
{
int index;
Scanner scan=new Scanner(System.in);
System.out.println("Enter index number");
int[]Project={10,15,20,25,30,35,40,45,50,55};
}
public class array2
{
switch (int index) {
case 1:
if(index=0)
{
System.out.print(Project[0]);
}
break;
case 2:
if(index=1)
{
System.out.print(Project[1]);
}
break;
case 3:
if(index=2)
{
System.out.print(Project[2]);
}
break;
case 4:
if(index=3)
{
System.out.print(Project[3]);
}
break;
case 5:
if(index=4)
{
System.out.print(Project[4]);
}
break;
case 6:
if(index=5)
{
System.out.print(Project[5]);
}
break;
case 7:
if(index=6)
{
System.out.print(Project[6]);
}
break;
case 8:
if(index=7)
{
System.out.print(Project[7]);
}
break;
case 9:
if(index=8)
{
System.out.print(Project[8]);
}
break;
case 10:
if(index=9)
{
System.out.print(Project[9]);
}
break;
case 11:
if(index=10)
{
System.out.print(Project[10]);
}
break;
}
}
can anybody explain to me why case 1 is getting an orphaned case error?