Code example for String

Methods: valueOf

0
        li = extras.getString("theList").split(",");
         
        int i = Integer.parseInt( extras.getString("theIndex") );
        if ( i > -1 )
        { 
          li[ i ] = li[ i ] + " <-- NEXT!";
        } 
         
        setTitle( extras.getString("theTitle") );
      } 
      else 
      { 
        li[0] = "err0r";
      } 
       
      setListAdapter( new MyAdapter( this, li ) );
           
      if (extras != null)
      { 
        int i = Integer.parseInt( extras.getString("theIndex") );
        setSelection( i );