: I AM trying like this String string = "004-034556";
String[] parts = string.split("-");
String part1 = parts[0]; // 004
String part2 = parts[1]; // 034556 and i have a string like "20140328_007.jpg|20140328_006.jpg" now i do like this String mystr=listParam13;
String[] parts = mystr.split("|");
Toast.makeText(getApplicationContext(),parts.toString(),5000).show();
String part1 = parts[0];
String part2 = parts[1]; but the result is bad u try this code in java also
i want 20140328_006.jpg when i click the next button