Sunday 6 March 2022

String programs in Java

 

      retain all the matched strings in a collection
      remove all the matched strings in a collection
      How to split a string by dot (.) in Java?
      How to remove special characters from a string?
      Implement circular buffer using fixed length StringBuffer
      How to get the string size in bits?
      Replace multiple spaces between a String with single space in Java
      Convert an integer to string in Java
      Check whether a string has any non-white space character or not
      Check whether string contain only digits or not in Java
      Trim leading character that matches a given predicate
      Tokenize the string to string array in Java
      Split the string by given character using indexOf method in Java
      Convert a throwable or an exception stack trace to string in Java
      Convert the memory size representation to a long value in bytes
      Remove a suffix from given string in Java
      Remove a prefix from given string in Java
      Java program to print table using formatter
Previous                                                    Next                                                    Home

No comments:

Post a Comment