Assignment
Generate the program for the following String, StringBuffer/Builder methods:
I. Length()
II. Concatenation all ways
III. charAt()
IV. getChars()
V. getBytes()
VI. toCharArray()
VII. Comparison all method ( equals(), equalIgnoreCase, regionMatches(), CompareTo)
VIII. startsWith/endswith()
IX. indexOf()/lastIndexOf()
X. substring()
XI. replace()
XII. trim()
XIII. length(), setLength()
XIV. capacity(), ensureCapacity()
XV. setCharAt()
XVI. getChars()
XVII. append()
XVIII. insert()
XIX. reverse()
XX. delete()/deleteCharAt()
XXI. replace()
Make a simple calculator using Math class

Assignment On String Math

  • 1.
    Assignment Generate the programfor the following String, StringBuffer/Builder methods: I. Length() II. Concatenation all ways III. charAt() IV. getChars() V. getBytes() VI. toCharArray() VII. Comparison all method ( equals(), equalIgnoreCase, regionMatches(), CompareTo) VIII. startsWith/endswith() IX. indexOf()/lastIndexOf() X. substring() XI. replace() XII. trim() XIII. length(), setLength() XIV. capacity(), ensureCapacity() XV. setCharAt() XVI. getChars() XVII. append() XVIII. insert() XIX. reverse() XX. delete()/deleteCharAt() XXI. replace() Make a simple calculator using Math class