[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
little help with method calling  XML
Forum Index » New to Java
Author Message
fisherman

Newbie

Joined: 01/21/2010 07:58:24
Messages: 2
Offline

hi!

im new to Java and working on a small thing here:



and now im assigned to create x and y methods and call them out in while cycle instead of the current code.

any pointers how to accomplish it?
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline

I'm not quite following what you're looking to do. Do you mean that you just need one or more additional methods? You'd do that the same way that you have your paint() method. It would just be something like "public double getX()" or whatever you need.

Let us know a bit more.

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
fisherman

Newbie

Joined: 01/21/2010 07:58:24
Messages: 2
Offline

ty for the swift reply!

i need to redo the currently working program so it has X and Y in different methods(functions) and i call them out in while cycle

This message was edited 1 time. Last update was at 01/21/2010 14:53:19

 
Forum Index » New to Java
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle