#jcommander

Interesting Links – 2017/Jun/12

picocli, a command-line parser. Apache-licensed; seems similar to JCommander with fewer dependencies. 9 Logging Sins in your Java Applications details, well, nine possible logging problems. It’s stuff worth thinking about. Five Things You Didn’t Know About… Java Database Connectivity, from IBM developerworks, walks through some things about JDBC that you might not have known. I learned about at least two things that were added since the last time I took a...

1 minute(s) read

First steps: Structure of your first source file

This is what a class file ought to look like when you take your first steps writing java programs: public class YourAppNameHere { public static void main(String[] args) { new YourAppNameHere().go(); } private String iAmAField; void go() { System.out.println("Your code goes here!"); } void someOtherMethod() { // You can call this method from 'go' with: someOtherMethod() iAmAField = "Hello, World!"; } } In particular, copy/paste the main() method verbatim and don’t touch it. If you need access to...

2 minute(s) read