Dandu 2 DArray
Dandu 2 DArray
Worksheet: TwoDArray
Copy and paste your code solution under the problem below and highlight your code.
Save this word document with yourLastName2DArray.docx (Ex: Smith2DArray.docx).
Output of program:
25 10 14
4 5 3
9 8 15
17 12 20
average = 11.833333333333334
Array values greater than average:
25 14 15 17 12 20
Contents of 2DArrayData.txt
25
10
14
4
5
3
9
8
15
17
12
20
import java.io.*;
import java.util.*;
Two-Dimensional Arrays Page 2 of 3
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws Exception{
// TODO code application logic here
Scanner myFile = new Scanner(new
File("2DArrayData.txt"));
2
Two-Dimensional Arrays Page 3 of 3
}
}