Chapter 15_ String Handling _ Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java _ KnowledgeBoat
Chapter 15_ String Handling _ Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java _ KnowledgeBoat
Home / Class 10 - Logix Kips ICSE Computer Applications with BlueJ / String Handling
Chapter 15
String Handling
Class 10 - Logix Kips ICSE Computer Applications with BlueJ
Question 1
Answer
Question 2
Answer
Question 3
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 1/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Answer
Question 4
Answer
Question 5
1. int
2. char
3. boolean
4. void
Answer
boolean
Question 6
1. if string1 > string2 the result will be a negative integer i.e. < 0.
2. if string1 > string2 the result will be a positive integer i.e. > 0.
3. if string1 > string2 the result will be 0.
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 2/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Answer
if string1 > string2 the result will be a positive integer i.e. > 0.
Chapter 8 1. if string1 > string2 the result will be a positive integer i.e. > 0.
Conditional Constructs in Java
2. if string1 < string2 the result will be a negative integer i.e. < 0.
Chapter 9
Iterative Constructs in Java
3. if string1 = string2 the result will be 0 i.e. = 0.
Chapter 10
Nested for loops
4. all of these
Chapter 11
Answer
Constructors
Question 8
Answer
Question 9
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 3/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
System.out.println("SUNDAY".substring(3));
1. NDA
2. DAY
3. SUN
4. N
Answer
DAY
Here, the start index is 3 so the substring starts from 'D' and
continues till the end of the string. So, the substring returned is
"DAY".
Question 10
System.out.println("WONDERFUL".substring(3,4));
1. DERF
2. NDER
3. D
4. N
Answer
Question 1
Answer
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 4/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Question 2(i)
Answer
The trim() method of the String class removes the leading and
trailing spaces from a string. It does not remove the spaces
present in between the string.
Syntax:
stringObject.trim()
Question 2(ii)
Answer
Question 2(iii)
Answer
Question 2(iv)
Answer
Question 2(v)
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 5/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Answer
Question 2(vi)
Answer
Question 2(vii)
Answer
Syntax:
string1.compareTo(string2)
Question 2(viii)
Answer
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 6/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Syntax:
string1.compareToIgnore(string2)
Question 2(ix)
Answer
Syntax:
stringObject.substring(int startindex)
Syntax:
stringObject.substring(int startIndex, int endIndex)
1 .
Question 2(x)
Answer
Here, data can be of various types like char, boolean, int, long,
float, double or char array.
Question 3(i)
Answer
equals() compareTo()
equals() checks if
contents of two compareTo() compares two strings
strings are same or lexicographically.
not.
Question 3(ii)
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 7/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Answer
equals() ==
Example:
Example:
String s1 = new
String s1 = new String("hello");
String("hello");
String s2 = new String("hello");
String s2 = new
boolean res = s1 == s2;
String("hello");
System.out.println(res);
boolean res = s1.equals(s2);
System.out.println(res);
The output of this code
snippet is false as s1 and s2
The output of this code
point to different String
snippet is true as contents of
objects.
s1 and s2 are the same.
Question 3(iii)
Answer
startsWith() endsWith()
Example: Example:
String str = "ICSE Computer String str = "ICSE Computer
Applications"; Applications";
boolean res = boolean res =
str.startsWith("ICSE"); str.endsWith("tions");
System.out.println(res); System.out.println(res);
The output of this code is true The output of this code is true
as str begins with "ICSE". as str ends with "tions".
Question 3(iv)
Answer
indexOf() lastIndexOf()
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 8/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
indexOf() lastIndexOf()
Example: Example:
String str = "How are you?"; String str = "How are you?";
int index = str.indexOf('o'); int index = str.lastIndexOf('o');
System.out.println("Index = " System.out.println("Index = "
+ index); + index);
Question 3(v)
Answer
compareTo() compareToIgnore()
Example:
Example:
String str1 = "computer";
String str1 = "computer";
String str2 =
String str2 = "COMPUTER";
"COMPUTER";
int res =
int res =
str1.compareToIgnore(str2);
str1.compareTo(str2);
System.out.println(res);
System.out.println(res);
Question 4
import java.util.Scanner;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 9/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
char ch = str.charAt(i);
if (ch != ' ') {
word = word + ch;
wLen++;
}
else {
System.out.println(word + "\t" + wLen);
word = "";
wLen = 0;
}
}
}
}
Output
Question 5
import java.util.Scanner;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 10/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
ch = str.charAt(i);
if (ch != ' ') {
word = word + ch;
}
else {
wordArr[index++] = word;
word = "";
}
}
//bubble sort
for (int i = 0; i < wordCount - 1; i++) {
for (int j = 0; j < wordCount - i - 1; j++) {
if (wordArr[j].compareTo(wordArr[j + 1]) > 1)
String t = wordArr[j];
wordArr[j] = wordArr[j+1];
wordArr[j+1] = t;
}
}
}
// printing
for(int i = 0; i < wordCount; i++)
System.out.print(wordArr[i] + " ");
}
}
Output
Question 6
import java.util.Scanner;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 11/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
if (str.charAt(i) == ' ') {
wordCount++;
}
}
}
else {
wordArr[index++] = word;
word = "";
}
}
//bubble sort
for (int i = 0; i < wordCount - 1; i++) {
for (int j = 0; j < wordCount - i - 1; j++) {
if (wordArr[j].length() > wordArr[j + 1].lengt
String t = wordArr[j];
wordArr[j] = wordArr[j+1];
wordArr[j+1] = t;
}
}
}
// printing
for(int i = 0; i < wordCount; i++) {
System.out.print(wordArr[i] + " ");
}
}
}
Output
Question 7
Character Frequency
A 2
C 1
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 12/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
D 1
E 2
H 1
M 1
0 1
p 1
R 1
import java.util.Scanner;
System.out.println("Character\tFrequency");
for (int i = 0; i < freqMap.length; i++) {
if (freqMap[i] > 0) {
System.out.println((char)(i + 65)
+ "\t\t" + freqMap[i]);
}
}
}
}
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 13/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Question 8
Write a program to input a string and print each word of the string
in the reverse order.
Sample Input:
Enter a string: My name is Raman
Sample Output
yM eman si namaR
import java.util.Scanner;
Output
Question 9
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 14/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
import java.util.Scanner;
int uc = 0;
int lc = 0;
int sc = 0;
int dc = 0;
char ch;
}
}
Output
Question 10
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 15/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Sample Input:
Enter a sentence: The quick brown fox jumps over the lazy dog.
Enter a word to search: the
Sample Output:
Search word occurs 2 times
import java.util.Scanner;
if (word.equalsIgnoreCase(ipWord))
count++ ;
word = "";
}
else {
word += str.charAt(i);
}
}
if (count > 0) {
System.out.println("Search word occurs " + count +
}
else {
System.out.println("Search word is not present in
}
}
}
Output
Question 11
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 16/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Sample Input:
"Tata football academy will play against Mohan Bagan"
Sample Output:
The longest word: Football
The length of the word: 8
import java.util.Scanner;
word = "";
}
else {
word += ch;
}
}
Output
Question 12
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 17/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Sample Input:
"SHE WAS FEEDING THE LITTLE RABBIT WITH AN APPLE"
Sample Output:
4
import java.util.Scanner;
}
}
Output
Question 13
import java.util.Scanner;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 18/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
for (int i = 0; i < names.length; i++) {
names[i] = in.nextLine();
}
//Bubble Sort
for (int i = 0; i < names.length - 1; i++) {
for (int j = 0; j < names.length - 1 - i; j++) {
if (names[j].compareToIgnoreCase(names[j + 1])
String temp = names[j + 1];
names[j + 1] = names[j];
names[j] = temp;
}
}
}
System.out.println("\nSorted Names");
for (int i = 0; i < names.length; i++) {
System.out.println(names[i]);
}
}
}
Output
Question 14
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 19/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Income Tax
Taxable Income (TI)
Calculation
If the age is less than or equal to 65 years and the gender is male,
compute and display the Income Tax payable as per the table
given above.
import java.util.Scanner;
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 20/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Question 15
import java.util.Scanner;
int idx;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 21/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
for (idx = 0; idx < SIZE; idx++) {
if (city.compareToIgnoreCase(cities[idx]) == 0) {
break;
}
}
Output
Question 16
import java.util.Scanner;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 22/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
System.out.println("Sorted Names");
for (int i = 0; i < n; i++) {
System.out.println(a[i]);
}
}
}
Output
Question 17
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 23/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Member Methods:
i. movieMagic() - Default constructor to initialise numeric data
members to 0 and String data member to "".
ii. void accept() - To input and store year, title and rating.
iii. void display() - To display the title of a movie and a message
based on the rating as per the table given below.
Write a main method to create an object of the class and call the
above member methods.
import java.util.Scanner;
public movieMagic() {
year = 0;
title = "";
rating = 0.0f;
}
System.out.println(title);
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 24/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
System.out.println(message);
}
Output
Question 18
import java.util.Scanner;
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 25/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Output
Question 19
Methods:
void accept(): to take input for name, coach, mobile number and
amount.
void update(): to update the amount as per the coach selected.
First_AC 700
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 26/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Second_AC 500
Third_AC 250
Sleeper None
Write a main() method to create an object of the class and call the
above methods.
import java.util.Scanner;
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 27/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Question 20
1. void check(String str, char ch) - to find and print the frequency
of a character in a string.
Example:
Input:
Str = "success"
ch= 's'
Output:
Number of s present is = 3
2. void check (String s1) - to display only vowels from string s1,
after converting it to lowercase.
Example:
Input:
S1= "computer"
Output: o u e
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 28/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
ch == 'u')
System.out.print(ch + " ");
}
}
}
Output
Question 21
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 29/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
First index : 5
Last index : 36
3. void Joystring (String s1, String s2) with two string arguments
that combines the two strings with a space between them and
prints the resultant string.
Example:
Input value of s1 ="COMMON WEALTH"
Input value of s2 = "GAMES"
Output: COMMON WEALTH GAMES
Output
Question 22
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 30/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
import java.util.Scanner;
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 31/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 32/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Question 23
import java.util.Scanner;
if (a > b) {
System.out.println(a);
}
else {
System.out.println(b);
}
if (x > y) {
System.out.println(a);
}
else {
System.out.println(b);
}
int l1 = a.length();
int l2 = b.length();
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 33/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
System.out.println(b);
}
Output
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 34/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Prev
Arrays
Class - 6 Effective History & Civics Solutions Java Number Programs (ICSE Classes 9 / 10) Privacy Policy
Class - 6 APC Understanding Computers Solutions Java Number Programs (ISC Classes 11 / 12) Terms of Service
Class - 7 Concise Physics Selina Solutions Output Questions for Class 10 ICSE Computer Applications
Class - 7 Concise Chemistry Selina Solutions Algorithms & Flowcharts for ICSE Computers
Class - 7 Dalal Simplified Middle School Chemistry Solutions ICSE Class 8 Computers Differentiate Between the Following
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 35/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Class - 7 Around the World Geography Solutions Class - 8 NCERT Science Solutions
Class - 7 Effective History & Civics Solutions Class - 9 NCERT Geography Contemporary India 1 Solutions
Class - 7 APC Understanding Computers Solutions Class - 9 Sumita Arora Computer Code 165 Solutions
Class - 8 Concise Physics Selina Solutions Class - 9 Kips Cyber Beans Computer Code 165 Solutions
Class - 8 Dalal Simplified Middle School Chemistry Solutions Class - 10 NCERT Science Solutions
Class - 8 Concise Biology Selina Solutions Class - 10 NCERT Geography Contemporary India 2 Solutions
Class - 8 Living Science Biology Ratna Sagar Solutions Class - 10 NCERT History India & Contemporary World 2 Solutions
Class - 8 Around the World Geography Solutions Class - 10 Sumita Arora Computer Code 165 Solutions
Class - 8 Veena Bhargava Geography Solutions Class - 10 Kips Cyber Beans Computer Code 165 Solutions
Class - 8 Effective History & Civics Solutions Class - 11 CBSE Sumita Arora Python Solutions
Class - 8 APC Understanding Computers Solutions Class - 12 CBSE Sumita Arora Python Solutions
Class - 8 Kips Logix Computers Solutions Class - 12 CBSE Preeti Arora Python Solutions
Class - 9 Concise Physics Selina Solutions Class - 12 NCERT Computer Science Solutions
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 36/37
5/20/24, 1:35 PM Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Class - 10 CBSE Computer Applications Solved Sample Papers
https://www.knowledgeboat.com/learn/class-10-logix-icse-computer-applications-java-bluej/solutions/Doa2jx/string-handling 37/37