about 9 years ago
Below I have written a code to split a string.
Suppose we have a string name imagePath and we are going to split by "/" by using split method in java.
String delimiter = "/"; String[] img; if (imagePath.contains("/")) { img = imagePath.split(delimiter); for(int i =0; i < img.length ; i++) System.out.println(img[i]); } else { throw new IllegalArgumentException(string + " doesnt contain /"); }
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)