Java examples for java.lang:Runtime
Java micro edition system To String
import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; public class Main{ public static void main(String[] argv) throws Exception{ System.out.println(systemToString()); }/* ww w .j a v a2s . c om*/ public static String systemToString() { String newline = "\n"; String properties = "MIDP Version: " + System.getProperty("microedition.profiles") + newline + "CLDC Version: " + System.getProperty("microedition.configuration") + newline + "Platform: " + System.getProperty("microedition.platform") + newline + "Locale: " + System.getProperty("microedition.locale") + newline + "Encoding: " + System.getProperty("microedition.encoding") + newline + "Total memory: " + Runtime.getRuntime().totalMemory() + newline + "Free memory: " + Runtime.getRuntime().freeMemory() + newline + "Used memory: " + (Runtime.getRuntime().totalMemory() - Runtime .getRuntime().freeMemory()); return properties; } }