Search:

Type: Posts; User: Mr.777

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    1,668

    Re: Can someone help me understand toString()?

    Returns the value of s.

    And declare s outside the function if you want to access s else you are returning value of s from the function, so simply get this value and print out by calling the...
  2. Replies
    10
    Views
    1,668

    Re: Can someone help me understand toString()?

    I can't understand what do you mean by using toString method to convert into String? Why not simply using String?
  3. Replies
    10
    Views
    1,668

    Re: Can someone help me understand toString()?

    elisha.java clear it.
    OP: toString() is a method provided by java.

    It can never convert int but the wrapper Integer to String and is mostly helpful when you want to use your data as String rather...
Results 1 to 3 of 3