Can you help me with this code?...

import java.util.;
import java.lang.
;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int temp1,temp2,temp3;
	Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
		      temp1=sc.nextInt();
		      temp2=sc.nextInt();
		      temp3=sc.nextInt();
		temp3=(temp1>temp2)?(temp1<temp3?temp1:temp3):(temp2<temp3?temp2:temp3);
		     System.out.println(temp3);
		}
	}
}

You can also check here (with inputs )
1: https://ideone.com/PlAgcj

What is the requirement of this program? Which problem you are attempting to solve ?? Provide more details otherwise it is not clear what you are trying to do.

You can check here- CodeChef: Practical coding for everyone

This is a question from a live contest. Read the Code of Conduct and do not post your code or ask for help about problem(s) from a live contest during the contest.

I joined the codechef today. I am not aware about these things.This will not be repeated. Thanks for telling me.

Welcome to the Codechef programming community.

As you are new here I would suggest you to go through Code of Conduct , FAQ , Tutorials , Sample Solutions , how to ask a question and other rules/regulations clearly.

Hope you enjoy this place.