Forum: Java Mar 30th, 2008 |
| Replies: 1 Views: 235 K-ary Trees This method should add a new point to the frame hierarchy and Make sure a new node is not added if overlap.
public void ToAddBonePoint( double testDiameter, double centerX, double centerY)
{
if... |
Forum: Java Mar 17th, 2008 |
| Replies: 1 Views: 268 noob question Hi
what is the difference between the following two code
public int calculate(int x, int level)
and
public int calculate()
int x; |
Forum: Java Mar 16th, 2008 |
| Replies: 1 Views: 259 algorithm help Hi
I need help with this,
1) an algorithm or way to count the levels of an unbalance binary tree (e.g. root has one level
2) to balance this unbalance tree
can I have some hints please! or... |
Forum: Java Feb 26th, 2008 |
| Replies: 1 Views: 246 method help define a method addOn that it adds the data argument to the list in the sorted location in alphabetical. There can only be one of each company in this list.
public void addOn(company data)
{
Node it... |
Forum: Java Feb 26th, 2008 |
| Replies: 0 Views: 364 linked list help define a method addOn that it adds the data argument to the list in the sorted location in alphabetical. There can only be one of each company in this list.
public void addOn(company data)
{
Node... |
Forum: Java Feb 24th, 2008 |
| Replies: 3 Views: 357 Re: while to ifthen so an if-then statement cant go on forever? an while loop cant be rewritten as if-then statement? |
Forum: Java Feb 24th, 2008 |
| Replies: 3 Views: 357 while to ifthen while (firstNodeNeedsToGo(text))
{
removeFirstNode();
nodeRemoved = true;
}
can someone rewrite this while loop into an if - then loop or any other code you have , this will help greatly... |
Forum: Java Feb 24th, 2008 |
| Replies: 2 Views: 327 basic questions boolean removedlNodes = false;
what is the point setting this type boolean = false?
Nodes = Nodes | NodesWithText(text);
what does this " | " means here ?
thanks in advance |
Forum: Java Feb 20th, 2008 |
| Replies: 1 Views: 195 add arguement to list in proper location can someone give me example of what this means
Define the addSortedData method such that it adds the dataAdd argument to the list in the proper sorted location according to ticker symbol. If a... |
Forum: Java Feb 19th, 2008 |
| Replies: 2 Views: 1,273 |
Forum: Java Feb 14th, 2008 |
| Replies: 6 Views: 485 Re: Use of Iterator this is the method need to use an iterator...
// YOU MUST ADD CODE TO THIS METHOD SUCH THAT WHEN CALLED IT
// NEATLY DISPLAYS ALL INFORMATION CONTAINED IN THE WebSite LIST
// YOU SHOULD USE AN... |
Forum: Java Feb 14th, 2008 |
| Replies: 6 Views: 485 |
Forum: Java Feb 14th, 2008 |
| Replies: 6 Views: 485 |
Forum: Java Feb 11th, 2008 |
| Replies: 6 Views: 485 Use of Iterator My problem: Use an Iterator to go through all of the elements in the list, getting each element's textual representation, and displaying this text neatly inside the text area.
My thoughts: Do I... |
Forum: Java Dec 19th, 2007 |
| Replies: 1 Views: 345 Video Poker coding hi
I have created the discard method in my player class and play is a Card[]
so i type currentCards.discard(numOfCard); and then it says "it cant invoke discard(int) on the array type card[]"
any... |
Forum: Java Dec 6th, 2007 |
| Replies: 1 Views: 1,950 BucketSoRt As an example, consider the following array of 9 integers in the range 1 to 5:
[2, 3, 2, 1, 4, 5, 2, 3, 1]
The count array would contain the following values:
[2, 3, 2, 1, 1]
Working from this... |
Forum: Java Dec 2nd, 2007 |
| Replies: 3 Views: 729 Write the definition of a class Again HI
problem:
Write the definition of a class Clock . The class has three instance variables: One of type int called hours , another of type boolean called isTicking , and the last one of type ... |
Forum: Java Dec 2nd, 2007 |
| Replies: 3 Views: 612 |
Forum: Java Dec 2nd, 2007 |
| Replies: 3 Views: 612 writing a definition of a class Hi Please help me with this problem
Write the definition of a class Play containing:
An instance variable counter of type int , initialized to 0.
A method called increment that adds one to the... |