I need help with this Java code. If I can at least get some helpstarting this.
Code:
public class ReverseInt
{
private static MyQueue que = new MyQueue();
private static MyStack stk = new MyStack();
public static void main (String[] args)
{
int num = 1234567; // original number
int rev = 0; // reversed number
// (1) Call revIntRec passing in num
revIntRec (num);
// (2) Loop through queue:
// Dequeue each digit and multiply by the appropriate power of10
// Start with the highest power of ten, use queue size-1
// Add these terms to get the reversed number which you
// should store in rev.
//todo
System.out.println(“Original: ” + num + ” Reversed: ” +rev);
//
PayPal Gateway not configured
PayPal Gateway not configured