who can help me,I don't know what happened?And I'm a new man
-
import java.util.Scanner;
public class ScannerTest{
public static void main(String[] args){Scanner sc = new Scanner(System.in); int height1 = sc.nextlnt(); int height2 = sc.nextlnt(); int height3 = sc.nextlnt(); int tempHeight = height1 > height2 ? height1 : height2; int maxHeight = tempHeight > height3 ? tempHeight : height3; System.out.println("maxHeight:" + maxHeight); }
}
-
Not sure exactly what your question is going to be, but I suspect it is going to be about Java code and not Notepad++.
If that’s the case, it isn’t appropriate for this forum. Please find another place to ask it.