ruds said:
The Program doesnot throw any exception or any other message.
It compiles properly and also does not give any runtime exception too.
No, it does not compile. Try again.
Compiling 1 source file to C:\Users\Dev\misc\ArraySort\build\classes
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:34: non-static
variable eid cannot be referenced from a static context
int limit = eid.size();
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:35: cannot find symbol
symbol : variable i
location: class arraysort.Summary
for( i = 0; i < limit; i++ ) {
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:35: cannot find symbol
symbol : variable i
location: class arraysort.Summary
for( i = 0; i < limit; i++ ) {
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:35: cannot find symbol
symbol : variable i
location: class arraysort.Summary
for( i = 0; i < limit; i++ ) {
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:36: cannot find symbol
symbol : variable str
location: class arraysort.Summary
str = (String) eid.get( i );
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:36: cannot find symbol
symbol : variable i
location: class arraysort.Summary
str = (String) eid.get( i );
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:36: non-static
variable eid cannot be referenced from a static context
str = (String) eid.get( i );
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:37: cannot find symbol
symbol : variable str
location: class arraysort.Summary
stress.add( eid_stress.get( str ) );
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:37: non-static
variable eid_stress cannot be referenced from a static context
stress.add( eid_stress.get( str ) );
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:37: non-static
variable stress cannot be referenced from a static context
stress.add( eid_stress.get( str ) );
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:39: non-static
variable stress cannot be referenced from a static context
Collections.sort( stress );
C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java:40: non-static
variable stress cannot be referenced from a static context
System.out.println( "Max stress=" + stress.get( limit - 1 ) );
Note: C:\Users\Dev\misc\ArraySort\src\arraysort\Main.java uses unchecked
or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors
BUILD FAILED (total time: 0 seconds)