0% found this document useful (0 votes)
16 views

Coding Skills Strings Naresh

String practice questions

Uploaded by

rizvihasan931
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Coding Skills Strings Naresh

String practice questions

Uploaded by

rizvihasan931
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.Write program to remove spaces in the below String.

String line = "this is java. this is nareshit. this is hyderabad";

2.How do you remove all occurrences of a given character from an input


string in Java?

String line = "this is java. this is nareshit. this is


hyderabad";

3.Write Volwel count in a given string

String line = "this is java. this is nareshit. this is


hyderabad";

4.Write program to make chars as unique in a given string


String line =”kfekeux zmzxmck sashfhjh fa qhhiruroew fjnmjguzs
djfakdsj”

5. Write program to convert string from lower case to upper case.

6. Write program to convert string from upper case to lower case.

don't use pre-defined methods.

6. Wite removeVoves from the string .

7. write a program male reverse of string.


Should not use pre-defined method. Write logic using for loop.

8. write replace to replace new char with old char.


9.Write a program in Java to count occurrence of a given character
in a String?

10.Java Program to check given strings are Anagram or not

12. Java Program to sort characters of string in Ascending Order.


Should not use pre-defined methods.

13. Java Program to sort characters of string in Descendig Order.


Should not use pre-defined methods.

You might also like