Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~5K People Reached
Favorite Forums
Favorite Tags
java x 35
Member Avatar for jnthn205

Here is an example of the return statement in question: [CODE]public boolean either24(int[] nums) { boolean n1 = false; boolean n2 = false; for (int i=0;i<nums.length-1;i++) if (nums[i]==2 && nums[i+1]==2) n1 = true; else if (nums[i]==4 && nums[i+1]==4) n2 = true; return !n1 && n2 || n1 && !n2; //<----what …

Member Avatar for moutanna
0
107
Member Avatar for jnthn205

Hey guys. I have a tic tac toe game that plots random X's and O's on a 2d matrix array called theBoard[row][col]. I want to check to see if one X is placed on 1 spot, and if another point is plotted in the same spot, to check if it …

Member Avatar for jnthn205
0
4K
Member Avatar for jnthn205

Can someone tell me how to print out each array and its value? we are given a random array of 1000 doubles. If a value in the array is above or below 90% the average, we are to print the "flagged" values. So far, I just have it printing one …

Member Avatar for jnthn205
0
164
Member Avatar for jnthn205

[code] public static void displayBoard(final char[][] theBoard) { // note the final parameter - we won't change the board, just print it. // Need to format the board display to look like this: // | | // ----- // | | // ----- // | | System.out.println("Welcome to a game …

Member Avatar for jnthn205
0
99
Member Avatar for jnthn205

Hello. For an assignment we have been given the shell of a tic tac toe game in java. We are to fix a few things that is wrong with it. here is the main class: [code] public class TicTacToeGameJonathanSilverberg { public static final int board_size = 3; // number of …

Member Avatar for jnthn205
-1
265
Member Avatar for jnthn205

Im writing this in netbeans. Here is the code: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package accounttoolssilverberg; /** * * @author Administrator */ public class accountToolsSilverberg { double a[]; int i; public accountToolsSilverberg() { a = new …

Member Avatar for jnthn205
0
86