Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String tempids=movie.setTmpid(det.getString("paramId"));//it is M1003
- char firstchar=tempids.charAt(0);//this is M
- System.out.println("first char"+firstchar);
- tempids = tempids.replaceAll("[^\\d.]", "");//this is 1003
- System.out.println("tempids"+tempids);
- Integer finalone= Integer.parseInt(firstchar+tempids);
- System.out.println("finalone"+finalone);
Add Comment
Please, Sign In to add comment