• Login
Community
  • Login

who can help me,I don't know what happened?And I'm a new man

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 191 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    SatokaNolato
    last edited by Oct 28, 2021, 9:03 AM

    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);
    
    }
    

    }

    A 1 Reply Last reply Oct 28, 2021, 10:52 AM Reply Quote 0
    • A
      Alan Kilborn @SatokaNolato
      last edited by Oct 28, 2021, 10:52 AM

      @SatokaNolato

      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.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors