Life,The universe and everything

i want to know that why my code is not working??
import java.io.*;
class Codechef
{
public static void main(String args[])throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
boolean f=false;
int j;
System.out.println(“Enter any number”);
while(f==false)
{

	j=Integer.parseInt(br.readLine());
	if(j==42)
	{
	    f=true;
	}
	
	else
	{
	System.out.println(j);
	}
}
}

}

You don’t need to display anything while taking input from the user.

Remove this from your code.

System.out.println(“Enter any number”);

Note: Read the Input and Output sections of the question very carefully and do only what is mentioned there.

In most(almost always) of programming questions, they never as you to to print something while taking inputs. Keep that thing in mind and pay attention to input and output format.Rest is good. :))-

How to stop printing 42 when needed?