Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

1 Endorsement
Ranked #856
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for woomar

Hi. I was wondering if anyone could help me with checking for a valid move in Othello. I was thinking about hard=coding everything but that takes too long. this is what i have so far: 1. Check which direction is valid (adjacent piece is different from piece being placed) 2. …

Member Avatar for JamesCherrill
0
5K
Member Avatar for woomar

Hi. I am very new to hashtable concept. Here is a skeleton of the methods I need to implement; BUT, my biggest question is the inner Entry class. Am I implementing the entry class correctly?Is my constructor correct? Thanks public class HashTable<K, V> { /** define an inner class to …

Member Avatar for JamesCherrill
0
210
Member Avatar for woomar

Hi. I was wondering how I could replace objects in a list without using a single loop. Here's what I have in terms of algorithm; but, I don't know how to implement.: replace(List list, oldObject, newObject) 1. if the first element in list is not null 2 if the old …

Member Avatar for woomar
0
238
Member Avatar for woomar

Hi. I was wondering if someone could explain to me how to make some new node point to the first element in a list.

Member Avatar for somjit{}
0
228
Member Avatar for woomar

Hi. I need help with my size method. I am using a single-linked list. I tested my code and it returns 0 all the time. /** This method returns the size of the current list. <br> * If the current list has no elements,it is empty. <br> * * @return …

Member Avatar for JamesCherrill
0
256
Member Avatar for woomar

Hi. Everyone. I have a single-linked list and I need to implement an add method. I need to traverse the list (it needs to be in increasing order) and place the parameter object inside. There won't be duplicates. How do I go about doing this? public void add(G element) { …

Member Avatar for JamesCherrill
0
152
Member Avatar for woomar

Is it possible to make some Junit tests that assertTrue (condition, throw some exeption) if condition was false or if condition would throw something, say assertEquals (codition, new Excepption) ?

Member Avatar for somjit{}
0
212
Member Avatar for woomar

If I have a chess board 8x8 And in my copy constructor I want to deep copy it. How would I go about doing it? This is what I have: public class chessBoard { private Chess[][]board; public chessBoard (){ board = new board[8][8]; for (int i = 0; i < …

Member Avatar for JamesCherrill
0
744