Simple Icons contributors / Simple Icons — CC0 1.0
Working notes on Java: Anonymous run, Charset, Conversions, Current directory, Custom sort, and Download, and related topics.
Working notes on Java: Anonymous run, Charset, Conversions, Current directory, Custom sort, and Download, and related topics.
Topics
- Anonymous run — Stuff here.
- Charset — Byte[] b = string.getBytes(Charset.forName("UTF-8"));.
- Conversions — New String(byteArray, "ISO-8859-1").
- Current directory — System.out.println("* "+System.getProperty("user.dir"));.
- Custom sort — @Override public int compare(HockeyPlayer p1, HockeyPlayer p2) {.
- Download — Package ..;.
- Execution — No standard location.
- External JAr location — Jre/lib/ext.
- File — Final String UTF8_BOM = "\uFEFF";.
- Integer > String — Preferred.
- Java — Process p = Runtime.getRuntime().exec("cmd /c dir");.
- Java Properties file — Imports java.io.FileInputStream;.
- Name Value pair — HttpPost request = new HttpPost();.
- Pass by — (unlike C++ where references are just another ‘name’ for the same variable).
- Random — Imports java.util.Random;.
- Remote debugging — No spaces in the runjdwp option.
- Servlet — Request.getContentLength() or.
- String conversions — String conversions: to Hex string, byteArray to String, String.getByte(“<encoding:UTF-8>”), and byteArray to String new String(<byteArray> [, <enc.
Updated:
2026 Aug 19
Anonymous run
Charset
Conversions
Current directory
Custom sort
Download
Execution
External JAr location
File
Integer > String
Java
Java Properties file
Name Value pair
Notes
Pass by
Random
Remote debugging
Servlet
String conversions


