Java編譯器

Java編譯器是Java編程語言的編譯器 。 Java編譯器最常見的生成文件是包含Java字節碼的Java類文件 。 Java虛擬機加載Java類文件 ， 並解釋或即時編譯Java字節碼爲機器代碼 。 class secondmax { public static void main ( String args [ ] ) { int n, temp, fmax = 0, smax = 0; Scanner sc = new Scanner ( System.in ); System.out.println ( " Enter how many numbers will you enter: " ); n = sc.nextInt; for ( int i = 0; i < n; i + + ) { temp = sc.nextInt; if ( i == 0 ) { fmax = temp; } else if ( temp > fmax ) { fmax = temp;  System.out.println ( " First max: " + fmax ); System.out.println ( " Second max: " + smax );