Results 1 to 2 of 2
  1. #1
    mjzhaochenyi is offline Member
    Join Date
    Oct 2011
    Posts
    4
    Rep Power
    0

    Default Transfer int to string type problem!

    can i transfer int 100 to string "100" in one step. any idea?
    any attention is appreciated!

  2. #2
    crikey is offline Senior Member
    Join Date
    Jul 2010
    Posts
    125
    Rep Power
    0

    Default Re: Transfer int to string type problem!

    String myString = "100";

    or use a StringBuilder;

    Java Code:
     
    StringBuilder myString = new StringBuilder();
    myString.append(100);
    You can append whatever you want with StringBuilder :)

Similar Threads

  1. Use robot class to type a string?
    By Mr.abe90 in forum New To Java
    Replies: 10
    Last Post: 05-30-2011, 09:46 PM
  2. Replies: 10
    Last Post: 12-07-2010, 12:29 PM
  3. Replies: 0
    Last Post: 12-03-2010, 06:07 AM
  4. Static String Return Type
    By Java_Developer in forum New To Java
    Replies: 17
    Last Post: 10-03-2009, 06:07 PM
  5. [SOLVED] Cast string type to int type
    By GilaMonster in forum New To Java
    Replies: 9
    Last Post: 09-17-2008, 10:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •