To Anyone that can Java I need help! Hopefully within the next 2 hours. :) Objective is to println the longest surname entered. The method I want to use is compareto() : Appreciate it! public static void main(String args[]) { Scanner scan = new Scanner(System.in); System.out.print(Enter first Surname: ); String name1 = scan.nextLine(); System.out.print(Enter second Surname: ); String name2 = scan.nextLine(); System.out.print(Enter third Surname: ); String name3 = scan.nextLine();
Posted on: Tue, 05 Aug 2014 23:49:21 +0000
Trending Topics
Recently Viewed Topics
© 2015