Help me in solving LBJ17 problem

My issue

My code

// Update the code below to solve this problem
import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		
		int t = read.nextInt();
		for(int i=0; i<t; i++)
		{
    		int x = read.nextInt();
    		int y = read.nextInt();
    		int y1= y/10;
    		int x1=(x/10)+1;
    		System.out.println(Math.abs(y1-x1));
    		
		}
	}
}

Learning course: Solve Programming problems using Java
Problem Link: CodeChef: Practical coding for everyone

@dpcoder_007 can you help me with this one please!!

@kd0916327
your code it failing for cases like 45 ,46 etc output should be 0 your code will give 1 so to take care of this just make ceiling division of x and y by 10 and then take absolute difference of them.