- BASICS
- Classes
- Objects
- Arrays
- Variables
- Loops
- Numbers
- Strings
- Exceptions
- Regexp
- OOP
- Inheritance
- Polymorphism
- Static Keyword
- Abstract Keyword
- Interfaces
- Constructors
- Packages
- Nested Classes
- Final Keyword
- SWING
- Frame
- Panel
- Listener
- Combo Box
- Label
- Image
- Menu
- Table
- Layout
- Drawing
- Timer
- Designer
- COLLECTIONS
- Lists
- Comparable
- Sets
- Maps
- Generics
- Properties
- Streams
- Json
- COMPILER
-
Sublime Text
- Apache Ant
- I/O
- Streams IO
- Socket
- Watching Files
- Logger
- Clipboard
- Encrypt
- JAVAFX
- Openjfx
- Scene Builder
- First App
- Jar Archive
- On Action
- Change Listener
Sublime Text
IDE - Integrated Development Environment software.
/**
* Install Sublime Text (see reference) and ...
* save new file /var/www/java/HelloWorld.java
*
*/
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Choose the build system: Tools / Build System / JavaC
# Build Tools / Build (compile the program)
/var/www/java/HelloWorld.class # compiled file
Run the program
$ java HelloWorld
// Hello World!
To compile and run at the same time save new build.
# Tools / Build System / New Build System ... JavaCrun
{
"cmd": ["javac \"$file_name\" && java \"$file_base_name\""],
"shell": true,
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
Last update: 531 days ago