
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
Overloading
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
16 questions
Hardware and software
Presentation
•
10th Grade
16 questions
PEMROGRAMAN DASAR
Presentation
•
10th Grade
17 questions
Programming Recap 2
Presentation
•
10th - 11th Grade
23 questions
Energy, Work and Power
Presentation
•
10th - 11th Grade
22 questions
Introduction to Relations and Functions
Presentation
•
9th Grade
18 questions
Dasar Komputer
Presentation
•
10th Grade
22 questions
Sistem Komputasi
Presentation
•
10th Grade
22 questions
KOMPUTER DAN JARINGAN DASAR
Presentation
•
10th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade