Java
Tuesday, 30 January 2024
StringBuffer and StringBuilder
StringBuffer
Synchronized
Thread safe
StringBuilder
Not synchronized
Not thread safe
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Reverse Words in a Sentence
Split into substrings
public static List<String> splitSubString(String name){ if (!(name.length() % 2 == 0 )){ name = name + "_" ...
Reverse a number
public static int reverseNumber(int number) int reversedNumber = 0 ; String numberValue = String. valueOf (number); String ...
System.out.println()
System It is a final clas Has private constructor Doesn;t allow to instantiated Provide facilities to standard input ,output out static met...
No comments:
Post a Comment