[JavaTutorial] Packaging
Requirements: Folders(Not many)
Benifits:*You will be able to acess java files a lot quicker than before.
*Your Java Project will look a lot cleaner than before.
_________________________________________________________The main code for packaging is
package.
How to locate java files with packaging?If your java file is located in the, lets say myfolder1, your package code will look like this(package myfolder1;)
_________________________________________________________Example of a package:
package packaging.myfolder1;
/*packaging.myfolder1; is the same as (folder)packaging>(folder)myfolder1;
*so basically your java file should be located in myfolder1
*/
public class HelloPackage {
public static void main(String[] args) {
System.out.println("Hello Package!");
}
}
_________________________________________________________Running the packaged file.You can compile and run, but thankfully i have provided you with the package of my own which you can download.
(It has a compiled java HelloPackage.java file with a successful runner.)
http://uppit.com/YI6LXPhttp://uppit.com/MN7U1L(Any of them are fine)
Thats about it for this tutorial.Thank you for visiting it.
/*
*Copyright Marsada(c)
*(c)2007-2009(c)
*/