#2D ARRAYS ASSIGNMENT

1 messages · Page 1 of 1 (latest)

worldly fulcrumBOT
#

<@&987246399047479336> please have a look, thanks.

worldly fulcrumBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

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.

wind junco
#

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

neat hawk
#

so... what's your question?

wind junco
#

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

dreamy shuttle
#

But what is your question? We cannot do your assignment for you fro scratch. @wind junco

wind junco
#

https://replit.com:/@ChknNugNug/82-challenges?s=app sorry I forgot

ChknNugNug

Run Java code live in your browser. Write and run code in 50+ languages online with Replit, a powerful IDE, compiler, & interpreter.