answersLogoWhite

0


Best Answer

package thisPackage;

import otherPackage.*;

class myClass {

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you add import packages to a java program in netbeans?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

List two methods to import java packages?

Java packages can be imported using the import key word in java. There are two ways of importing java programs. 1. you can import the class along with the fully classified class name. Ex: import java.lang.String; 2. you can import all classes in a package using the star symbol. Ex: import java.lang.*;


Import statement in java?

import PackageName.SubPackage.ClassName.SubClass; or import PackageName.SubPackage.*; \\ this will import any class in the package note : it's very simple, consider the packages are like folders, as the are.


How do you write a java program with xcode4?

You are best off looking into downloading an IDE such as Eclipse or netbeans, as they are tailored towards development using the Java programming language.


What is the best IDE for java Netbeans or Eclipse?

Off course Netbeans... Netbeans is supported by Sun.. i.e. that every new feature in Java is done immediately by Netbeans unlike Eclipse... No...? I beg to defer :) Eclipse is a better IDE based on which many of the advanced IDE's for Java are build like WSAD (Websphere Studio Application Developer) or RAD (Rational Application Developer) both are IBM products for advanced Java programming. They contain many features that Netbeans does not have..


How do you write program in java?

You can write it with Windows NotePad, although using an IDE such as NetBeans or Eclipse is recommended. If you mean you want to learn Java, take a look at the tutorials at the Oracle site.


What statement do you use to make a group of classes available to a program?

You would use the import command. For example:import java.lang;To do this with custom classes, it requires two things:These classes are grouped inside a package, so the java program can use themThese packages are included inside the program, just like the java jdk


Where to write javafie?

we use notepad and netbeans for java file.save file with .java extension


Which is the first non-comment statement in ajava program file?

It is most likely an "import Java. ...." statement. Which imports packages to be used in the source file. Or a class declaration "public class myClass { ".


Where to place the downloaded packages in java?

Generally you add the jar to the Libraries folder of the project in the IDE - In Netbeans, simply right click on Libraries folder and select Add Jar/folder


What is juniperext.exe as a computer program?

Juniperext.exe is an extension of ActiveX and Java software packages on the Windows OS. It is the program through which Java functions are executed on a browser.


How do you create and execute a java program?

You can create a Java program by writing it in any text editor - for example Notepad, or Notepad++. You can compile it with the "javac" command, and, if it compiles without errors, run it with the "java" command. Or better, simplify your life by installing an IDE (integrated development environment), such as Netbeans or Eclipse.


What Do you Open your java File With?

.java files can be opened using an IDE (like Eclipse or NetBeans) or with notepad.exe.