I want to remove square brackets from a string, but I don\'t know how.
String str = \"[Chrissman-@1]\"; str = replaceAll(\"\\\\[\\\\]\", \"\"); String[] tem
String str, str1; Scanner sc = new Scanner(System.in); System.out.print("Enter a String : "); str = sc.nextLine(); str1 = str.replaceAll("[aeiouAEIOU]", ""); System.out.print(str1);