Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java 1- Write a method that fills a two dimensional array of characters. The characters are read from an input file. The first two numbers
java
1- Write a method that fills a two dimensional array of characters. The characters are read from an input file. The first two numbers are the number of rows and the number of columns of the array. Example input file: 53 abc def ghi jkl mno Test your method by filling two arrays of characters from two different input files. 2- Write a method "areEqual()' that receives two two-dimensional arrays of characters, and returns true if the two arrays are equal, and false if the two arrays are not equal. The comparison is a deep comparison that compares the contents of the two arrays. - Test your method twice, once with two equal methods and another time with two different methods. 3- Write a method Write a method "isldentity()' that receives one two-dimensional array of integers, and returns true if the array is the identity matrix, and false otherwise. Hint: The identity matrix has ones in its diagonal and zeros everywhere else. Also, the identity matrix has the same number of columns and rows. For example: 10000 01000 00100 00010 00001 Test your method twice; once with an identity matrix and another time with a non-identity matrixStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started