About 50 results
Open links in new tab
  1. How do I compare strings in Java? - Stack Overflow

    Apr 2, 2013 · Other Methods To Consider String.equalsIgnoreCase () value equality that ignores case. Beware, however, that this method can have unexpected results in various locale …

  2. Difference between String trim() and strip() methods

    The methods that only accept a char value cannot support supplementary characters. ... The methods that accept an int value support all Unicode characters, including supplementary …

  3. How to use the toString method in Java? - Stack Overflow

    Sep 1, 2010 · The string returned should be concise and informative, ideally self-explanatory. At least, the fields used to establish equivalence between two different objects i.e. the fields used …

  4. Remove part of string in Java - Stack Overflow

    Aug 14, 2018 · I want to remove a part of string from one character, that is: Source string: manchester united (with nice players) Target string: manchester united

  5. Returning String Methods in Java? - Stack Overflow

    Returning String Methods in Java? Asked 10 years, 8 months ago Modified 10 years, 8 months ago Viewed 103k times

  6. java - What is the "String [] args" parameter in the main method ...

    May 21, 2009 · That String[] args part may become optional in future versions of Java. Work is underway to allow for simplified declaration of main method. See JEP 463: Implicitly Declared …

  7. How do I convert a String to an int in Java? - Stack Overflow

    Integer.valueOf produces an Integer object and all other methods a primitive int. The last two methods are from commons-lang3 and a big article about converting here.

  8. java - Reverse a string without using string functions - Stack …

    Aug 2, 2016 · Considering Java I think we cannot accomplish reverse without using functions since it does not support pointers directly.

  9. How do I invoke a Java method when given the method name as a …

    785 If I have two variables: Object obj; String methodName = "getName"; Without knowing the class of obj, how can I call the method identified by methodName on it? The method being …

  10. java - Difference between String replace () and replaceAll () - Stack ...

    May 31, 2012 · What's the difference between java.lang.String 's replace() and replaceAll() methods, other than the latter uses regex? For simple substitutions like, replace . with /, is …