- Java
- 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
- IO
- Streams Io
- Socket
- Watching Files
- Logger
- Clipboard
- Encrypt
- Junit
- About
- Test Case
- Suite Test
- Annotations
- Exceptions
- JavaFX
- Openjfx
- Scene Builder
- First App
- Jar Archive
- On Action
- Change Listener
- Maven
- Demo
- Spring Boot
- Junit
- Guava
- Threads
- Create Thread
- Sleep
- Lock
- Scheduler
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"
}