News

//Let's define a function f(s) over a non-empty string s, which calculates the frequency of the smallest character in s. For example, if s = "dcce" then f(s) = 2 because the smallest character is "c" ...
Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly ...
String are immutable in java..i.e they are constant.Any modifiction to the String leads new object cretions. two ways to create String objects using String literal and using new object. Creating ...