|
||||||
| Java Tutorials Tutorials and Code for Java |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
This tutorial will show you how to “include” other classes in your Java app.
Prerequisites You should have JDK installed and an editing environment you are comfortable with. Java:Tutorial - Getting Started You should know how to create classes within your IDE http://forum.codecall.net/java-tutorials/1706-java-tutorial-hello-world.html The Idea In Java, you have the opportunity to import other class files that do most of the work for you. Solution In Java we import class files by simply writing the word include and then the path to the file you want to include. For example Code:
import javax.swing.JFrame; Code:
import javax.swing.*; Code:
package foobar;
import javax.swing.*;
public class MyClass {
}
Code:
import mypackage.myclass.*; When programming in Java you are provided with many classes that do all the hard work for you. When creating even a basic program you will import at least one class. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .QSD files reader program | SamehSpiky | C and C++ | 8 | 05-21-2008 11:42 AM |
| How do I read .mbm (Multi BitMap) files? | moondog | General Programming | 7 | 08-07-2007 07:08 AM |
| location of download files and configuration problem | meimei3936 | ionFiles | 4 | 06-29-2007 06:28 AM |
| Java Help Files | xXHalfSliceXx | Java Help | 3 | 11-28-2006 11:30 PM |
| Help Files | Chan | General Programming | 2 | 10-22-2006 06:44 PM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| LogicKills | ........ | 20.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 67%