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 175 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.
    • SatokaNolatoS
      SatokaNolato
      last edited by

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

      }

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @SatokaNolato
        last edited by

        @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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors