rudis

Untitled

Aug 24th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. String tempids=movie.setTmpid(det.getString("paramId"));//it is M1003
  2.  
  3. char firstchar=tempids.charAt(0);//this is M
  4. System.out.println("first char"+firstchar);
  5. tempids = tempids.replaceAll("[^\\d.]", "");//this is 1003
  6. System.out.println("tempids"+tempids);
  7.  
  8. Integer finalone= Integer.parseInt(firstchar+tempids);
  9. System.out.println("finalone"+finalone);
Add Comment
Please, Sign In to add comment