Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String abrNom(String nom)
- {
- String res ="";
- nom.trim();
- if(nom.length()==1)
- return nom+"Spc";
- else
- {
- for(int i=0;i<nom.length();i++)
- if(i==0)
- res+=nom.charAt(i);
- else
- {
- if(nom.charAt(i-1)==' ' & nom.charAt(i)!=' ')
- res+=nom.charAt(i);
- }
- }
- return res;
- }
Advertisement
Add Comment
Please, Sign In to add comment