compile error:public class Unit8 { public static void main( String [] args ) { int [] even = new int [ 100 ]; int [] odd = new int [ 100 ]; int randomNum; for( int count = 0 ; count < 2 ; count++ ) { System.out.println( count ); randomNum = (int) (25 * Math.random()); displayEvens( randomNum ); displayOdds( randomNum ); } } public static void displayOdds( int randomNum ) { for( int count = 0 ; count < 100 ; count++ ) { randomNum = 1+(int)(25*Math.random()); int randArr[m] = 1+(int)(25*Math.random()); System.out.println( randArr ); if(randomNum / 2 == 1) System.out.println( randomNum ); } } public static void displayEvens( int randomNum ) { for( int count = 0 ; count < 100 ; count++ ) { randomNum = 1+(int)(25*Math.random()); int randArr[m] = 1+(int)(25*Math.random()); System.out.println( randArr ); if(randomNum / 2 == 0) System.out.println( randomNum ); } } }
petes-MacBook-Air:java programs pkrasinski$ javac Unit8.java
Unit8.java:26: ']' expected
int randArr[m] = 1+(int)(25*Math.random());
------------^
Unit8.java:26: illegal start of expression
int randArr[m] = 1+(int)(25*Math.random());
-----------^
Unit8.java:41: ']' expected
int randArr[m] = 1+(int)(25*Math.random());
------------^
Unit8.java:41: illegal start of expression
int randArr[m] = 1+(int)(25*Math.random());
-----------^
4 errors