For this Question: Given a positive number X. Find all Jumping Numbers smaller than or equal to X. 
Jumping Number: A number is called Jumping Number if all adjacent digits in it differ by only 1. All single-digit numbers are considered as Jumping Numbers. For example 7, 8987 and 4343456 are Jumping numbers but 796 and 89098 are not.The first line of the input contains T denoting the number of test cases. Each test case contains a positive number N.

Constraints:
1 <= T <= 50
1 <= N <= 10^8For each test case, print a single line containing all the Jumping numbers less than or equal to N from 1 in increasing orderSample Input:
2
10
50

Sample Output:
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10 12 21 23 32 34 43 45

Explanation:
Testcase 2: Here, the most significant digits of each jumping number is following increasing order, i.e., jumping numbers starting from 0, followed by 1, then 2 and so on, themselves being in increasing order 2, 21, 23., I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) throws IOException{

	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	int t=Integer.parseInt(br.readLine());
	for(int j=0;j<t;j++)
	{
		int n=Integer.parseInt(br.readLine());
		Queue<Integer> q=new LinkedList<>();
		int i=1;
		while(i<=n)
		{
			if(i>9)
			{
				break;
			}
			System.out.print(i+" ");
			q.add(i);
			i++;
		}
		int newJumpingNo;
		while(n>9)
		{
			i=q.remove();
			int lastDigit=i%10;
			if(lastDigit==0)
			{
				newJumpingNo=i*10+1;
				if(newJumpingNo>n)
				{
					break;
				}
				System.out.print(newJumpingNo+" ");
				q.add(newJumpingNo);
			}
			else if(lastDigit==9)
			{
				newJumpingNo=i*10+8;
				if(newJumpingNo>n)
				{
					break;
				}
				System.out.print(newJumpingNo+" ");
				q.add(newJumpingNo);
			}
			else{
				newJumpingNo=i*10+(lastDigit-1);
				if(newJumpingNo>n)
				{
					break;
				}
				System.out.print(newJumpingNo+" ");
				q.add(newJumpingNo);

				newJumpingNo=i*10+(lastDigit+1);
				if(newJumpingNo>n)
				{
					break;
				}
				System.out.print(newJumpingNo+" ");
				q.add(newJumpingNo);
			}
		}
		System.out.println();
	}
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?