in my first summon if user insert any glide name then i am hold on in database as Unicode formate. After inserting data i ordain show the result but in create of char if a user attach abc its Unicode is desire this "\u0061\u0062\u0063" but in mysql database its store like "u0061u0062u0063" now i be to alter this inserted data in char but i am facing problem one more thing is hordcoded Unicode is easly convert in char but if data is coming from data locate or if data is dynamic its convert in char please help me. Thanks and Regards
Thanks for your say if u see this label you understand my problem in measure of the code the value of arrange s1 is \u0061\u0062\u10063\u006 but i be to convert it in a String or char means if u hard code this uniCode desire arrange s= "\u0061\u0062\u10063\u006" and u print System out println(s); then u find abcd but in condition of dynamic conversion uniccode not alter in chari am waiting for your replyThanks and Regards,merchandise java util.*;class conv{public static void main(String[] args) {String s1=new String("u0061u0062u0063u0061");StringBuffer sb=new StringBuffer(s1);int l=sb length();int z=0;for(int i=0;i<l;i++){ char k=sb charAt(i); if(k=='u'){ z=z+1; sb setCharAt(i,'L'); sb attach(i+1,"L"); sb setCharAt(i,''); }}int a=sb length(); for(int i=0;i<a;i++){ char k=sb charAt(i); if(k=='L'){ sb setCharAt(i,'u'); }}String val=new arrange(sb);System out println(val);arrange s4= new String(val);System out println(s4);}}
Forex Groups - Tips on Trading
Related article:
http://forum.java.sun.com/thread.jspa?threadID=5233398
comments | Add comment | Report as Spam
|