Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

queue and push question

Status
Not open for further replies.

ttea

IS-IT--Management
Feb 24, 2003
11
HK
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] !=&quot;0&quot;)
{
q.push(location[j]);

}

}

while ( !q.isEmpty() )
System.out.println( q.pop() );
 
>> Unable to compile class for JSP.

that is not an error message that helps us understand the problem.

the class &quot;Queue&quot; is not part of JDK 4.1 so we don't know what or where it is defined.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top