Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    2
    2
    62
    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.
    • SatokaNolato
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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
        Copyright © 2014 NodeBB Forums | Contributors