public static int [][] reverseDiagonal(int arrayReverse[][]) {
int s=0;
int temp,temp1;
for (int row = 0; row < 4/2; row++){
temp=arrayReverse[row][row];
...
Type: Posts; User: hiimjoey11
public static int [][] reverseDiagonal(int arrayReverse[][]) {
int s=0;
int temp,temp1;
for (int row = 0; row < 4/2; row++){
temp=arrayReverse[row][row];
...
I think i am on the right track. But it isn't working right. this is what i have so far:
public static int [][] reverseDiagonal(int arrayReverse[][]) {
int s=0;
int temp;
...
Ah worked perfect thanks. Now part c says: Write a method reverseDiagonal that revers both diagonals of a two-dimensional array. For example, if the two-dimensional array is as show in part (b),...
Yeah in my code as posted above i tried this :
public static String matricize(int arrayB[], int arrayC[][]) {
for(int i=0;i<4;i++) {
for(int j=0;j<4;j++) {
...
Good point. Sorry about that. Here are the directions Magic Square:
a. Write a method createArithmeticSeq that prompts the user to input two numbers, first and diff. The method then creates a...
Thanks in advance! I have been working on this for hours and can't seem to get it right. I added the directions as an attachment. I can't seem to get B working. any ideas as to how to fix it?...
I am trying to make a program that deals hands in poker. I am trying to make the straight and straight flush, but can't fix the little bugs. If anyone could help me I would greatly appreciate it....
It compiles fine if the user inputs mm/dd/yyyy, but if they input m/d/yyyy it wont work. Any ideas? I am going to upload the directions that I was given. Code is all done just a couple errors : (
...