Norm Radder

Master Rancher
+ Follow
since Aug 10, 2005
Worked mostly with IBM mainframe assembly code. Loved IBM's VM OS.
Eastern Florida
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Norm Radder

The first level test would be with the localhost address with the server and client being on the same PC.
If that works, then move to testing in on a LAN with two PCs connected to the same LAN.  May require settings in the PCs to allow external connections.
When that works, move to testing it between two PCs using the external IP address for the PC with the server.  That test may require firewall changes.
4 hours ago
If you have code at this site:
could you add a post there saying the problem is solved?
4 days ago
Every time a new Player object is created, the value of currentGold will be set to 500 because currentGold is static and there is only one copy of the variable available for all instances of the Player class.
Remove the static so that each instance of the Player class will have its own copy of currentGold.

What is the purpose of the amazon1 variable?  It is always created when a new Player object is created and then its gold value is copied to currentGold???

Whoops, I thought code was in Player not in Main class

I was remembering the code from this site:
There seems to be a big change from that code to what is posted here.
5 days ago

The problem that I am having is that the amount of gold seems to deplete right after a purchase but then returns back to its original value after I call the amazonInventory() method.

Can you post the program's output that shows what you are talking about?  Be sure to add some comments where the output is not what you expected.
5 days ago
How does that code compile if the Node constructor takes an argument?
1 week ago

 actual node rewiring does not work as expected

Can you describe the expected results for these  cases:
node to insert is less than the current node
node to insert to go at end of list

What values need to be copied to link the the new node?

I removed some of these print statements

Put them back until the code is debugged.
For example what value is in head after the first insert is done?
1 week ago
How are you trying to debug the code to see what it is doing so you can find the problem?
The code does not have many useful print statements to show the program's progress when it is trying to do an insert.
1 week ago
Please post your code here on the forum.  Be sure to wrap it in code tags.
1 week ago
Take it a step at a time.
First work on getting the distance between all pairs of contents.  Print the indexes and the distances between the contents for those indexes.
Working on that should give you some ideas on the next step.
1 week ago
First thing to do before trying to write any code is come up with a design or algorithm or list of steps the program needs to take to solve the problem.
What are your thoughts so far?
1 week ago

you have overloaded .start()

Method Overloading is a feature that allows a class to have more than one method having the same name, if their argument lists are different.


When a method in a subclass has the same name, same parameters or signature, and same return type(or sub-type) as a method in its super-class,

1 week ago
Try with both to see
which is an override (no error)
and which one is not an override(will cause a compiler error)
1 week ago

your own .start() method, which will not be called

The start method is called for me when line 26 is executed.  That is why I suggested the OP add @Override statements to see which start is a new method and which start overrides the extended class's start method.
1 week ago