4 Replies Latest reply: Jan 13, 2008 11:53 AM by 807601 RSS

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

    807601
      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