Problem Statement - replace() compareTo()
Give the output of the following string functions:
(i) “ACHIEVEMENT”.replace(‘E’,’A’)
(ii)”DEDICATE”.compareTo(“DEVOTE”)
Solution
sunmitra| Created: 25-Mar-2018 | Updated: 12-Apr-2019|ICSE2018
Give the output of the following string functions:
(i) “ACHIEVEMENT”.replace(‘E’,’A’)
(ii)”DEDICATE”.compareTo(“DEVOTE”)
sunmitra| Created: 25-Mar-2018 | Updated: 12-Apr-2019|ICSE2018