Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can someone teach me how to convert a int to a String array

807601Jan 13 2008 — edited Jan 13 2008
I'v been trying to convert int to String array and its not working for me my codes are

String a[]={"10","24","5","3"};
int b=20;
a[0]=Integer.toString(b);

this code is ok when I drawString
but is't not ok when I want to compare the value in the string

exp.
String c[]={"20","2","4","7"}
if(a[0]==c[0])
//do something

can someone please help me
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2008
Added on Jan 13 2008
4 comments
63 views