I have tried a lot to find the problem in this code, but was not able to. Please help
import java.util.Scanner;
import java.util.*;
class Life {
public static void main(String args[]) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int inp=0;
do
{
inp=sc.nextInt();
if(inp !=44)
{System.out.print(inp);}
}
while(inp !=44);
sc.close();
}
}