Write Java statements to: [5]
(i) replace all occurrences of character ‘r’ with ‘h’ in the String “Programmer”
(ii) initialize a character array ch with the characters of the word “Transition”
(iii) convert a character stored in variable test into Upper Case
(iv) write the prototype of a method that returns true/false and takes 2 strings as parameters
(v) input an integer using Scanner class object ‘sc’
Answers
Answered by
11
These would helps u
Attachments:
Similar questions
World Languages,
7 months ago
Physics,
7 months ago
Math,
7 months ago
English,
1 year ago
History,
1 year ago
India Languages,
1 year ago
Physics,
1 year ago