Java command line snippet