Joined
Last Seen
0 Reputation Points
20% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #72.7K
The result of this below only print out John 90 Shawn 100 Melalin 75 Jane 80 What i want is Melalin 75 Jane 80 John 90 Shawn 100 I tried all methods but still can't think of how to make it arrange from the lowest score to the highest. Can … |
|
[ICODE]import java.io.*; import java.util.*; class MyClass { public static void main(String s[]) { int a,b; a = Integer.parseInt(s[0]); b = Integer.parseInt(s[1]); System.out.print("Hello World \n"); } }[/ICODE] I'm getting the following error " Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at MyClass.main(Myclass.java:8) " Someone please help me out..... |