Gallery Posted by www.chennarapu.com Posted on April 18, 2014 Posted under Coding Comments 1 Comment How to remove the letters from the bellow String? String str = “0N1A2G3A4R5A6J7U89”; public class StringDemoString { public static void main(String[] args) { String str = “0N1A2G3A4R5A6J7U89”; str = str.replaceAll(“[^0-9]”, “”); System.out.println(str); } } Name(required) Email(required) Website Comment(required) Submit Δ Share this:TwitterFacebookLike Loading... Related
mca2ramkrishna@gmail.com