This is my second post
In this guide, you will learn how to write HelloWorld program in Java.
Prerequisites
-
Java 17+
-
Your favorite IDE (Intellij IDEA, Eclipse, NetBeans, VS Code)
Say Hello in Java
Here is how to write code snippet using Asciidoc format.
class Hello {
String hello() {
return "Hello";
}
}
Here is how to write code snippet using Hugo format.
class Hello {
String hello() {
return "Hello";
}
}
Here is how to include code snippet from a remote file using Asciidoc.
package com.sivalabs.tcdemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootJpaApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootJpaApplication.class, args);
}
}
This is a NOTE |
This is a CAUTION |
This is a WARNING |
This is a TIP |
This is IMPORTANT |
Summary
To learn more interesting things, visit https://www.sivalabs.in