Search Results

Showing results 1 to 17 of 17
Search took 0.03 seconds.
Search: Posts Made By: mahlerfive ; Forum: Java and child forums
Forum: Java Dec 16th, 2008
Replies: 7
Views: 678
Posted By mahlerfive
If your SoapPair class has any member variables, all of them have to be of a type that is serializable.
Forum: Java Dec 10th, 2008
Replies: 4
Views: 438
Posted By mahlerfive
The panel class needs a reference to your frame class. Assuming your frame class creates the panels, the frame should send a reference to itself (this) as an argument to the panel constructor. You...
Forum: Java Dec 10th, 2008
Replies: 2
Views: 496
Posted By mahlerfive
I would argue that the majority of code people write is iterative rather than recursive. Because recursion has more overhead in terms of memory and speed, iterative approaches are generally preferred...
Forum: Java Dec 9th, 2008
Replies: 4
Views: 431
Posted By mahlerfive
The lowercase part you have actually won't work for all cases...

What I would do is just have a boolean variable for each condition, and each check will set the appropriate variable to true or...
Forum: Java Dec 9th, 2008
Replies: 4
Views: 379
Posted By mahlerfive
And your question is?
Forum: Java Dec 7th, 2008
Replies: 14
Views: 824
Posted By mahlerfive
Did I say I don't know how to build a GUI from scratch? What is wrong with using a tool that makes the GUI design process quicker?
Forum: Java Dec 7th, 2008
Replies: 14
Views: 824
Posted By mahlerfive
I usually use Eclipse, but switch over to Netbeans when I do any sort of GUI.
Forum: Java Dec 5th, 2008
Replies: 8
Views: 422
Posted By mahlerfive
The Java API is your friend: http://java.sun.com/javase/6/docs/api/
Look up FileWriter, look at the constructor and the write methods.
Forum: Java Dec 5th, 2008
Replies: 16
Views: 1,084
Posted By mahlerfive
You will need nested loops. The inner loop will print one line of numbers, while the outer loop controls how the pattern changes for the inner loop.

If you're still stuck, try solving the problem...
Forum: Java Dec 4th, 2008
Replies: 4
Views: 444
Posted By mahlerfive
Just 71C15 alone is over 914 trillion combinations. A normal computer can do about 1 billion/sec. This means it will take about 10 days to compute just 71C15.

You might be able to do 71C7 or 71C8...
Forum: Java Dec 3rd, 2008
Replies: 4
Views: 515
Posted By mahlerfive
Generally when you are doing recursion on any kind of collection of items (lists, arrays, even strings) you want to solve the problem for the first element of the collection, then recurse on the...
Forum: Java Dec 2nd, 2008
Replies: 2
Views: 435
Posted By mahlerfive
I think you're going to need to give more information about what you need to do.
Forum: Java Dec 1st, 2008
Replies: 3
Views: 544
Posted By mahlerfive
Also try to reduce the amount of code you post. Just post the relevant parts. Add the exact error messages or example output to show us the problem.
Forum: Java Dec 1st, 2008
Replies: 4
Views: 366
Posted By mahlerfive
What protocol do you want to simulate? At what layer? You should be able to code a simulation up depending on which protocol you want to simulate.

You might also want to do a search into network...
Forum: Java Nov 30th, 2008
Replies: 4
Views: 625
Posted By mahlerfive
Sorting by hand generally means the teacher wants you to show the array after each step of the sort from start to finish.
Forum: Java Nov 30th, 2008
Replies: 4
Views: 511
Posted By mahlerfive
You shouldn't ever be returning the operators though, only the result of operations or the number value in the node.

In the first branch, after you apply the operator to the two children, you...
Forum: Java Nov 28th, 2008
Replies: 2
Views: 930
Posted By mahlerfive
Since you want to return a string, just save the string returned from each recursive call, plus the string of the data in the node you are looking at and add them all together:

public void...
Showing results 1 to 17 of 17

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC