What will be result of the following if String s1 = "BETTER" ; String s2 = "minds"; (5) i). System.out.println ( s1.charAt(2) +' ' + s1.charAt(3) +'d'+48) ; ii). System.out.println (s2 . substring (1,4). substring (0).equals(s2.substring(3,4))) ; iii). System.out.println(s1.substring(0,2).concat(s2.substring(1))); iv). System.out.println (s2.indexOf ( 'n'+' '+90 ) ) ; v). System.out.println ( s1.replace ( 'E' , '&' ) ) ;
Answers
Answered by
1
Answer:
i) 348
ii)false
iii)BEinds
iv)-1
v)B&TT&R
thank yopu and kindly mark me brainliest by giving five stars and thank u if found my answer useful and appropriate.
Similar questions
Social Sciences,
4 months ago
Physics,
4 months ago
Math,
10 months ago
Computer Science,
10 months ago
Math,
1 year ago