Forums Register Login

client-server relationship

+Pie Number of slices to send: Send
Hello everyone
need some help about invoking method from a seperate .java file! well I this code which is about a guessing random numbers:


I tried to use System.load(name) but couldn't get it to work,well I don't know if its the right one to be honest.

Thanks for considerig my problem

Olliver


EDIT by mw: Added Code Tags for formatting.
[ September 28, 2007: Message edited by: marc weber ]
+Pie Number of slices to send: Send
If you're just trying to call getGame() from GameTest, all you need to do is use your "game" reference...

game.getGame();

Unless these files are on different machines, you don't really have a networking issue here (e.g., client/server).
+Pie Number of slices to send: Send
Note: Methods named "getX()" are called "getter" methods, and they return ("get") X. So it might be confusing to name your method "getGame()" when it is not returning an instance of Game. Instead, you might change the name to something like playGame().
keep an eye out for scorpions and black widows. But the tiny ads are safe.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 779 times.
Similar Threads
what's wrong with the code?
GuessingGame
I keep having a issue with variables and methods.
client and server network
infinite loop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:35:33.