Showing results 1 to 19 of 19
Search took 0.01 seconds.
Posts Made By: Danii
Forum: Java Mar 30th, 2008
Replies: 1
Views: 235
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
what is return 0 or return 1 ?

example
if (...){
return 0;
}
else (...){
return 1;
}

that do they mean?
Forum: Java Feb 14th, 2008
Replies: 6
Views: 485
Posted By Danii
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
Posted By Danii
Re: Use of Iterator

how do I call "append" ? Can you give me some examples
Forum: Java Feb 14th, 2008
Replies: 6
Views: 485
Posted By Danii
Re: Use of Iterator

but the list elements are in a txt file how can I walk through it ?


thanks
Forum: Java Feb 11th, 2008
Replies: 6
Views: 485
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
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
Posted By Danii
Re: writing a definition of a class

thanks Black Box I fixed it now tyty !!:D
Forum: Java Dec 2nd, 2007
Replies: 3
Views: 612
Posted By Danii
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...
Showing results 1 to 19 of 19

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:31 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC