Results 1 to 1 of 1
Thread: Doubling size of 2d array
- 07-03-2011, 04:30 AM #1
Member
- Join Date
- Jul 2011
- Posts
- 18
- Rep Power
- 0
Doubling size of 2d array
This method should return a new matrix with each of its dimensions doubled in size. The way to do this is that every single value in the original matrix should be duplicated 3 additional times so that it is present 4 times in the new matrix.
The header should look something like this:
public static int[][] doubleSize(int[][] m)
Similar Threads
-
Changing size of Array
By ravian in forum New To JavaReplies: 3Last Post: 06-05-2012, 08:17 PM -
size of array
By swathi dharmaraj in forum New To JavaReplies: 8Last Post: 04-22-2011, 12:35 AM -
increase array size
By giorgi in forum New To JavaReplies: 45Last Post: 04-08-2011, 04:56 PM -
Doubling the size of an array
By Java Tip in forum java.langReplies: 0Last Post: 04-14-2008, 08:42 PM -
Array size declaration
By JT4NK3D in forum New To JavaReplies: 3Last Post: 01-18-2008, 10:37 PM


LinkBack URL
About LinkBacks

Bookmarks