English

Write the output of the codes given below. String at = "BANANA"; String ar = at.concat(at.replace ( 'N', 'T')); System.out.println( “ AR :: " + ar );

Advertisements
Advertisements

Question

Write the output of the codes given below.

String at = "BANANA"; String ar = at.concat(at.replace ( 'N', 'T'));
System.out.println( “ AR :: " + ar );
Very Short Answer
Advertisements

Solution

AR :: BANANA BAТАТА

shaalaa.com
  Is there an error in this question or solution?
Chapter 10: String Handling - Exercises [Page 248]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 10 String Handling
Exercises | Q 3. (l) | Page 248
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×