🌐
KnowledgeBoat
knowledgeboat.com › learn › class-10-logix-icse-computer-applications-java-bluej › solutions › Doa2jx › string-handling
Chapter 15: String Handling | Solutions for Class 10 ICSE Logix Kips Computer Applications with BlueJ Java | KnowledgeBoat
Write a program in Java to enter a string/sentence and display the longest word and the length of the longest word present in the string. 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; public class KboatLongestWord { public static void main(String args[]) { Scanner in = new Scanner(System.in); System.out.println("Enter a word or sentence:"); String str = in.nextLine(); str += " "; //Add space at end of string String word = "", lWord = ""; int len = str.length(); for (int i = 0; i < len; i++) { char ch = str.charAt(i); if (ch == ' ') { if (word.length() > lWord.length()) lWord = word; word = ""; } else { word += ch; } } System.out.println("The longest word: " + lWord + ": The length of the word: " + lWord.length()); } }
🌐
Scribd
scribd.com › document › 554688990 › X-Conceptual-Notes-String-Handling
Java String Handling for ICSE Class 10 | PDF | String (Computer Science) | Parameter (Computer Programming)
1. The document discusses various string handling methods in Java like length(), charAt(), indexOf(), substring(), replace(), concat(), equals(), toLowerCase(), compareTo(), trim(), startsWith(), and endsWith(). 2. These string methods allow ...
Rating: 5 ​ - ​ 2 votes
🌐
KnowledgeBoat
knowledgeboat.com › learn › class-10-icse-sumita-arora-computer-applications-bluej › solutions › k56r1B › string-handling
Chapter 8: String Handling | Sumita Arora Solutions ICSE Class 10 Computer Applications with BlueJ Java | KnowledgeBoat
Write a program to accept a string. Convert the string to uppercase. Count and output the number of double letter sequences that exist in the string. Sample Input : "SHE WAS FEEDING THE LITTLE RABBIT WITH AN APPLE" ... import java.util.Scanner; public class KboatLetterSeq { public static void main(String args[]) { Scanner in = new Scanner(System.in); System.out.print("Enter string: "); String s = in.nextLine(); String str = s.toUpperCase(); int count = 0; int len = str.length(); for (int i = 0; i < len - 1; i++) { if (str.charAt(i) == str.charAt(i + 1)) count++; } System.out.println("Double Letter Sequence Count = " + count); } }
🌐
Scribd
scribd.com › document › 900769069 › String-Programs-Class-10-icse
ICSE Java String Programs for Class 10 | PDF | Computer Programming
The document contains a series of Java programs that demonstrate various string manipulation techniques, including generating patterns, swapping names, creating initials, and converting strings to Pig Latin.
🌐
Google Sites
sites.google.com › view › manobal-sir › icse-class-10 › chapter-4-string-handling
Manobal sir - Chapter 4: String Handling
Write a program in Java to enter a sentence. Display the words which are only palindrome. ... Write a program to accept a sentence. Display the sentence in reversing order of its word. ... Write a program to input a sentence and display the word of the sentence that contains maximum number of vowels. ... Write a program to assign the given sentence to a string variable.
🌐
Quora
quora.com › What-are-the-most-important-string-programs-in-Java-for-the-class-10-ICSE-board-exam
What are the most important string programs in Java for the class 10 ICSE board exam? - Quora
Answer (1 of 3): Class 10 board Computer paper could be super duper easy if you apply right approach. Though I gave my paper 2 years back so can’t tell you about latest trends but the will be more all less same. Step 1 Download or take a printout of the scope of syllabus and read the basic defi...
🌐
Scribd
scribd.com › document › 813150696 › class10-string-programs
Java String Handling Programs for ICSE | PDF | String (Computer Science) | Letter Case
Sample i/p: COMPUTER IS FUN Sample o/p: FUN IS COMPUTER */ import [Link].*; public class stringRev { public static void main(String args[]) { [Link]("\f"); String w="",s1=""; char x=' '; Scanner sc= new Scanner([Link]); [Link]("enter a String:"); String st= [Link](); st=[Link](); st=" "+st; for(int i= [Link]()-1;i>=0;i--) { x=[Link](i); if(x!=' ') w=x+w; else { s1=s1+w+" "; w=""; } } [Link](s1); } } /**Write a Program to input a string and print the character which occur maximum no of times within a string. Sample i/p: James Gosling developed java Sample o/p: The character with maximum no of t
🌐
Baibhavcomputer
baibhavcomputer.com › wp-content › uploads › 2021 › 05 › string-programs-solved-for-website-2021-converted.pdf pdf
COMPUTER APPLICATION BLUEJ STRING PROGRAMS
Program 10:Write a program in Java to accept a String in upper case and · replace all the vowels present in the String with Asterisk(*)sign. Sample Input: "TATA STEEL IS IN JAMSHEDPUR" Sample output: T*T* ST**L *S *N J*MSH*DP*R · import java.util.*; public class VowelReplace ·
🌐
Alexsir
alexsir.com › class10-icse-java-string-and-its-functions
Class10 ICSE JAVA String & Its Functions - Alex Sir-Let's Code
Class 10th Java aims to empower students by enabling them to build their own applications introducing some effective tools to enable them to enhance their knowledge, broaden horizons, foster creativity, improve the quality of work and increase efficiency · Class 10th java topics includes revision ...
Find elsewhere
🌐
w3resource
w3resource.com › java-exercises › string › index.php
Java exercises: String Exercises - w3resource
March 2, 2026 - Write a Java program to get the character at the given index within the string. ... Original String = Java Exercises! The character at position 0 is J The character at position 10 is i
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-string-programs
Java String Programs - GeeksforGeeks
October 7, 2025 - In Java, a String is a sequence of characters that is used to represent text. It is one of the most commonly used data types in the Java programming language. Strings are immutable, so their values cannot be changed once created.
🌐
YouTube
m.youtube.com › watch
String Handling | Computer Applications | ICSE Class 10 ...
May 15, 2022 - Share your videos with friends, family, and the world
🌐
Shaalaa
shaalaa.com › textbook-solutions › c › avichal-solutions-computer-applications-english-class-10-icse-chapter-4-string-handling_8228
Avichal solutions for Computer Applications [English] Class 10 ICSE chapter 4 - String Handling [Latest edition] | Shaalaa.com
Your friend is trying to write a program to find and display the frequency of vowels in a string. Due to confusion in the syntax of some of the statements, he could not complete the program and has left some places blank marked with ?1?, ?2?, ?3? and ?4? to be filled with expression/function. The incomplete program is shown below: import java.util.*; class Vowels { public static void main(String args[]) { Scanner ...?1?...=new Scanner(System.in); String st; int i, b, v = 0; char chr; System.out.println(“Enter a string”); st=...........?2?............; // to input a string st=..............?3?.............; // to convert the string into uppercase b = st.length(); for (i = 0; i < b; i++) { chr= ......?4?......; // to extract a character if (chr == "A" || chr == "E" || chr == "T" || chr == "0" || chr == "U") v = v + 1; } System.out.printIn(“No.
🌐
Quora
quora.com › What-are-some-of-the-most-difficult-string-programs-in-Java-ICSE-10
What are some of the most difficult string programs in Java ICSE 10? - Quora
Answer (1 of 2): Write a program to print the anagram of a string of any length. Input - MAN Output - MAN MNA NAM NMA AMN ANM
🌐
DigitalOcean
digitalocean.com › community › tutorials › string-programs-in-java
String Programs in Java | DigitalOcean
August 4, 2022 - Here is a simple program to check if two strings are created with same characters. package com.journaldev.java.string; import java.util.Set; import java.util.stream.Collectors; public class CheckSameCharsInString { public static void main(String[] args) { sameCharsStrings("abc", "cba"); sameCharsStrings("aabbcc", "abc"); sameCharsStrings("abcd", "abc"); sameCharsStrings("11", "1122"); sameCharsStrings("1122", "11"); } private static void sameCharsStrings(String s1, String s2) { Set<Character> set1 = s1.chars().mapToObj(c -> (char) c).collect(Collectors.toSet()); Set<Character> set2 = s2.chars().mapToObj(c -> (char) c).collect(Collectors.toSet()); System.out.println(set1.equals(set2)); } }
🌐
Tutorjoes
tutorjoes.in › java_programming_tutorial › string_exercise_programs_in_java
Java : String - Exercises and Solution
9. Write a Java program to compare a given string to the specified character sequence View Solution · 10.
🌐
Wordpress
amitasuri.wordpress.com › 2011 › 02 › 21 › shortest-and-longest-words
Various String Programs | ICSE_ISC_CBSE_Computer Science
July 28, 2012 - Java provides us a good library of string functions which makes string manipulation in Java very easy and interesting. And this skill of string manipulation is tested quite well in both ICSE (Class Xth) and ISC (Class XIIth) exams. Here is a list of some java programs written according to Bluej.
🌐
Scientech Easy
scientecheasy.com › home › blog
Top 15+ String Programs in Java for Interview - Scientech Easy
June 11, 2025 - Go to this tutorial for best explanation: How to reverse a string in Java · Question 10: Write a program to separate individual characters from a string. ... public class IndividualCharacter { public static void main(String[] args) { String str = "Technology"; // Prints individual characters from given string.