"Java is C++ without the guns, knives, and clubs." - James Gosling
"Copy and paste is a design error. " - David Parnas
"Programming is like sex. One mistake and you have to support it for the rest of your life." - Michael Sinz
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <project> | |
| <target name="antBuild"> | |
| <!-- Properties value inside this traget scope --> | |
| <property name="rootDir" value="."/> | |
| <property name="author" value="Bhuwan Prasad Upadhyay"/> |
| <plugin> | |
| <!-- Ant Maven Plugin --> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>1.8</version> | |
| <dependencies> | |
| <!-- For Ant Contrib Tasks --> | |
| <dependency> | |
| <groupId>ant-contrib</groupId> | |
| <artifactId>ant-contrib</artifactId> |
| #Bytecode | |
| *.class | |
| # Mobile Tools for Java (J2ME) | |
| .mtj.tmp/ | |
| # Package Files | |
| *.jar | |
| *.war | |
| *.ear |
| public class HelloWorldInJdk9WithEA { | |
| public static void main(String[] args) { | |
| System.out.println("Welcome Java 9!!"); | |
| } | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.yourgroupname</groupId> | |
| <artifactId>junit5-your-artifact-name</artifactId> | |
| <version>1.0</version> | |
| <packaging>jar</packaging> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| import java.awt.Desktop; | |
| import java.io.File; | |
| import java.net.URI; | |
| /** | |
| * | |
| * @author Bhuwan Prasad Upadhyay | |
| */ | |
| public class LaunchAppInNativeOSToHandleLinkAndFile { |
| /** | |
| * | |
| * @author developerbhuwan | |
| */ | |
| public class JsoupExample { | |
| private static final String URL = "http://www.bhuwanupadhyay.com.np/"; | |
| public static void main(String[] args) { | |
| try { |