Category: Java

java 0

[Resolved] Remove Java completely from Mac / Linux

sudo rm –fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm –fr /Library/PreferencePanes/JavaControlPanel.prefPane sudo rm –fr ~/Library/Application\ Support/Java # Remove Java run­time from the root of your sys­tem cd /Library/ rm –rf Java/ Ver­ify Java in unin­stalled java…

java 0

[Resolved] unsupported major.minor version 52.0

This is a generic issue. I solved it using the fol­low­ing steps. Unin­stall Java com­pletely sudo rm –fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm –fr /Library/PreferencePanes/JavaControlPanel.prefPane sudo rm –fr ~/Library/Application\ Support/Java # Remove Java run­time from the…

Java — How to Convert character array to a String 0

Java — How to Convert character array to a String

Many a times you need to con­vert the char­ac­ter array into a String, its quite sim­ple to do. char[] x = {‘s’,‘u’,‘m’,‘i’,‘t’}; Method 1. String a = new String(x); Method 2. String b = String.valueOf(x);…