i am testing the queue and push in jsp, but there is error:
Unable to compile class for JSP.
Do you have any idea
String location[]= new String[3];
location[0]="0";
location[1]="9";
location[2]="0";
Queue q = new Queue();
for(int j=0;j<3;j++)
{
if(location[j] !="0"
{
q.push(location[j]);
}
}
while ( !q.isEmpty() )
System.out.println( q.pop() );
Unable to compile class for JSP.
Do you have any idea
String location[]= new String[3];
location[0]="0";
location[1]="9";
location[2]="0";
Queue q = new Queue();
for(int j=0;j<3;j++)
{
if(location[j] !="0"
{
q.push(location[j]);
}
}
while ( !q.isEmpty() )
System.out.println( q.pop() );