Q1. Write a Java statement for
To replace 'a' with 'o' in the string "Parallax”.
Share
Q1. Write a Java statement for
To replace 'a' with 'o' in the string "Parallax”.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
A String in Java is actually an object, which contain methods that can perform certain operations on strings. For example, the length of a string can be found with the length() method:
Explanation:
Method