
String Methods in Java
Presentation
•
Computers
•
10th Grade
•
Medium
Lisa Donlan
Used 10+ times
FREE Resource
15 Slides • 10 Questions
1
2
3
4
5
Multiple Choice
What is the output?
String word1 = "Hello";
String word2 = "hello";
System.out.println(word1.equals(word2);
true
false
6
7
8
9
Multiple Choice
What is the output?
String word1 = "Day";
System.out.println(word1.length( ));
1
2
3
4
10
Multiple Choice
What is the output?
String word1 = "Day Old";
System.out.println(word1.length( ));
3
5
6
7
11
12
Multiple Choice
What is the output?
String word1 = "Happy Days";
System.out.println(word1.charAt(0);
D
H
Happy
Days
13
Multiple Choice
What is the output?
String word1 = "Happy Days";
System.out.println(word1.charAt(2);
H
a
p
y
14
15
16
17
Multiple Choice
What is the output?
String word1 = "Happy Days";
System.out.println(word1.substring(0,4);
Happy
Days
Hap
Happ
18
Multiple Choice
What is the output?
String word1 = "Happy Days";
System.out.println(word1.substring(4,9);
y Days
Day
Days
y Day
19
20
Multiple Choice
What is the ouput?
String word1 = "Hello";
String word2 = "hello";
System.out.println(word1.equals(word2);
System.out.println(word1.equalsIgnoreCase(word2);
true
true
true
false
false
true
false
false
21
String str = "class";
What does str.length( ) equal?
22
String str = "class";
What is the output?
23
Multiple Choice
What is the output?
String word1 = "stressful";
System.out.println(word1.substring(3));
essful
e
r
ressful
24
substring(int) vs. substring(int, int)
This is an example of overloading. Java is smart enough to know that when you only use one integer, then give the rest of the string.
If you use two integers, then you are only getting part of the string.
25
Open Ended
What are 3 things you learned today?
Show answer
Auto Play
Slide 1 / 25
SLIDE
Similar Resources on Wayground
20 questions
Biology EOC Category 5 (Cont)
Presentation
•
11th Grade
20 questions
Evaluating Functions
Presentation
•
9th Grade
19 questions
Python Lists
Presentation
•
11th Grade
16 questions
Sistem Komputer (Pertemuan 3)
Presentation
•
10th Grade
19 questions
Application of Input and Output Devices
Presentation
•
9th Grade
16 questions
Introduction to Programming
Presentation
•
11th Grade
21 questions
PEMROGRAMAN DASAR
Presentation
•
10th Grade
18 questions
Parameterised Constructors
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade