Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to call java methods from different java file.

joker3000Apr 14 2015 — edited Apr 16 2015

Hi, i create 2 files:

  1. CircleCalculationMethod.java
  2. Main.java

In Main.java, How can i call method in CircleCalculationMethod.java ?

  • Should i put everything in same folder ??
  • Should i do something like "import CircleCalculationMethod.java"
  • Should i do something like create a package

Thanks

P/S: i use Eclipse software

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2015
Added on Apr 14 2015
3 comments
993 views