#2D ARRAYS ASSIGNMENT
1 messages · Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
8.1-8.2 - 2D array Challenges
Create a class TwoDChallenge and create the following methods:
public void print(int[][] nums)
Prints all the values stored in nums
example output:
5 3 2 6
1 6 9 2
7 5 2 8
public void print(String[][] words)
Prints all the words stored in nums
Output same as above
public void print(double[][] nums)
Prints all the values stored in nums
Output same as above
public int oneDCount(String[] words)
Returns the total number of characters in all String in words combined
public int twoDCount(String[][] words)
MUST use oneDCount
Returns the total number of characters stored in words
public String findInt(int[][] nums, int target)
Returns the location of target formatted in sub notation
example return: 7 is found at location [5][4]
if number is not found, example return:
7 was not found in the array
public int countEvens(int[][] nums)
Returns the total count of even numbers in nums
public int[][] copy(int[][] nums)
Returns a new 2D int array that is a copy of nums
so... what's your question?
sorry for the late reply, i didn't notice that this was still open
i needed to create this:
public int[][] mirror(int[][] nums)
Returns a new 2D array of ints that mirror around the middle of each row
Does NOT modify original array
But what is your question? We cannot do your assignment for you fro scratch. @wind junco
https://replit.com:/@ChknNugNug/82-challenges?s=app sorry I forgot