Java: Difference between revisions
From charlesreid1
| Line 41: | Line 41: | ||
= | =Libraries= | ||
awesome-java repo on github [https://github.com/akullpp/awesome-java] | |||
immutables in Java (similar notation to javascript/d3) [https://immutables.github.io/] | |||
libgdx for 3d games in Java [https://libgdx.badlogicgames.com/] | |||
* 3d graphics: https://github.com/libgdx/libgdx/wiki/3D-Graphics | |||
stanford core NLP in java [https://stanfordnlp.github.io/CoreNLP/] | |||
legion of the bouncy castle [https://www.bouncycastle.org/java.html] | |||
* lightweight crypto API in Java | |||
apache shiro for session management (large enterprise or small mobile) [https://shiro.apache.org/] | |||
selenium web browser test suite [http://docs.seleniumhq.org/] | |||
jsoup crawler and html parser [https://jsoup.org/] | |||
crawler4j another crawler and html parser [https://github.com/yasserg/crawler4j] | |||
Revision as of 10:22, 4 September 2016
Cool: http://www.ibm.com/developerworks/library/j-robots/index.html
Getting Started
Download and install Java, if you need to.
Hello World
This will walk through compiling and running a "Hello world" example in Java.
The program
Here's a simple Java "Hello world" program:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
Compiling
To compile this program, use the javac command:
$ javac HelloWorld.java
This will create a HelloWorld.class file, which is the Java executable.
Running
To run a Java executable, use the java command, and pass it the executable's filename without the extension:
$ java HelloWorld Hello, world!
Libraries
awesome-java repo on github [1]
immutables in Java (similar notation to javascript/d3) [2]
libgdx for 3d games in Java [3]
- 3d graphics: https://github.com/libgdx/libgdx/wiki/3D-Graphics
stanford core NLP in java [4]
legion of the bouncy castle [5]
- lightweight crypto API in Java
apache shiro for session management (large enterprise or small mobile) [6]
selenium web browser test suite [7]
jsoup crawler and html parser [8]
crawler4j another crawler and html parser [9]