

review
Presentation
•
Computers
•
3rd Grade
•
Practice Problem
•
Easy
Arasaka Teacher
Used 2+ times
FREE Resource
3 Slides • 4 Questions
1
Scope
By Arasaka Teacher
2
​class outputting{ static Integer data = l; public static void outputData() { System.out.println(data); } public static void main(String args[]) { System.out.println(data); outputData();}
3
public class Student { // 全局变量(成员变量) String name; // 保存学生的名字,整个类中都可以使用 // 方法,带有参数
public void sayHello(String greeting) {
// 参数变量:greeting //
局部变量:message
String message = greeting + ", " + name;
System.out.println(message); // 输出:Hello, 小明 }
public static void main(String[] args) {
Student stu = new Student();
stu.name = "小明"; // 设置全局变量 stu.sayHello("Hello"); // 传入参数变量 } }
4
Drag and Drop
String name;
public void bark(int times) {
String sound = "Woof";
for (int i = 0; i < times; i++) {
System.out.println(name + ": " + sound);
}
}
public static void main(String[] args) {
Dog d = new Dog();
d.name = "Xiao Hei";
d.bark(3);
}
5
Dropdown
int totalCount = 0;
public void addCount(int number) {
totalCount += added;
System.out.println("Added: " + added);
System.out.println("Total: " + totalCount);
}
public static void main(String[] args) {
Counter c = new Counter();
c.addCount(5);
}
}
6
Fill in the Blanks
7
Labelling
label
getSum()
Performs an action (e.g., print)
Has a return value (int, String, etc.)
No (nothing to assign)
Calculates and returns a result
No return value (void)
Yes, must use return to give back a valu
Scope
By Arasaka Teacher
Show answer
Auto Play
Slide 1 / 7
SLIDE
Similar Resources on Wayground
9 questions
Konfigurasi server softswitch
Presentation
•
3rd Grade
6 questions
Mathematics learned times
Presentation
•
3rd Grade
7 questions
Ancient Rome Arts
Presentation
•
3rd Grade
9 questions
Unit 3 Week 2 Vocabulary Part 2 Benchmark TN
Presentation
•
3rd Grade
8 questions
Central Idea
Presentation
•
4th Grade
4 questions
บทเรียนที่ไม่มีชื่อ
Presentation
•
2nd Grade
9 questions
DAILY ACTIVITIES
Presentation
•
3rd - 4th Grade
9 questions
Rain Forest Rescue - Inferencing
Presentation
•
4th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
100 questions
100 multiplication facts
Quiz
•
3rd Grade
15 questions
Sentence or Fragment
Quiz
•
3rd Grade
10 questions
Place Value
Quiz
•
3rd Grade
18 questions
Nouns
Quiz
•
3rd Grade
10 questions
The Origami Master
Quiz
•
3rd Grade
20 questions
Four Types of Sentences
Quiz
•
3rd - 5th Grade
10 questions
Text Features
Quiz
•
3rd Grade
20 questions
Addition Facts within 20
Quiz
•
1st - 3rd Grade