Click here to Skip to main content
15,896,063 members

Comments by Lucas Dana (Top 5 by date)

Lucas Dana 7-Nov-20 13:27pm View    
stack.LinkedStack@15db9742
Info: The stack is empty
-2147483648
Lucas Dana 7-Nov-20 13:24pm View    
What code should I put in so that it throws the exception in case the stack is empty, and in another test it returns the elements of the stack and the integer with the maximum value?
Lucas Dana 7-Nov-20 13:22pm View    
public static int max(Stack stack) throws IncorrectOperation{


}

}
Lucas Dana 7-Nov-20 13:20pm View    
How can I throw an exception in Java when it checks if a stack is empty, and if it is not, show me the elements of that stack and the highest number.?
Lucas Dana 7-Nov-20 13:19pm View    
Deleted
How can I throw an exception in Java when it checks if a stack is empty, and if it is not, show me the elements of that stack and the highest number.?