samsungfanatic
asked on
New to Java programming
Hi,
I am a new java programmer, i would like to ask the following questions:
1. Say if i wanted to use x.class for some of its methods, how do i let my program "know" that i want to use methods from x.class?
2. Could anyone recommend a good Java IDE?
I would greatly appreciate any help on the above. Thanks.
Samsungfanatic.
I am a new java programmer, i would like to ask the following questions:
1. Say if i wanted to use x.class for some of its methods, how do i let my program "know" that i want to use methods from x.class?
2. Could anyone recommend a good Java IDE?
I would greatly appreciate any help on the above. Thanks.
Samsungfanatic.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For your IDE question:
https://www.experts-exchange.com/questions/20777711/Best-Free-Java-IDE-In-Your-Opinon-and-Why.html
however, i suggest that you use notepad since you are new to Java, this will help you to learn this language.. personally, i've only try JBuilder and i find it quite good, but i'm still prefer to write in notepad ;p
-Child-
https://www.experts-exchange.com/questions/20777711/Best-Free-Java-IDE-In-Your-Opinon-and-Why.html
however, i suggest that you use notepad since you are new to Java, this will help you to learn this language.. personally, i've only try JBuilder and i find it quite good, but i'm still prefer to write in notepad ;p
-Child-
Afterall, jimmack has already answer your question clearly and i think you should accept his comment as answer :p
Good day
-Child-
Good day
-Child-
Thanx ;-)
Classes are usually created inside "packages". A package is a logical collection of related classes. eg. The package java.awt contains all the main abstract windowing toolkit classes like Frames, Windows, Buttons etc.
If you want your class to be able to access a Button, you "import" the class into your .java file:
import java.awt.Button;
public class MyClass2
{
private Button myButton;
.
.
}