Within the main class, create three class variables:
-
A boolean variable called bool with a value of false
-
A String variable called str with a value of "sup"
-
An integer variable called i with a value of 10
Solution
|
1
2
3
4
5
6
7
8
9
10
|
class Main
{
boolean bool=false;
String str="sup";
int i =10;
public static void main(String[] args)
{
System.out.println("nothing to do here...");
}
}
|
반응형
'Java_beginner(Repl.it) > Auto-Graded-Course(AP CS A)' 카테고리의 다른 글
| 058 - Scope and Global Variables 1 (0) | 2019.12.26 |
|---|---|
| 057 - Accumulator Method String Challenge 1 (optional) (0) | 2019.12.26 |
| 056 - Accumulator Method String Practice 4 (0) | 2019.12.26 |
| 055 - Accumulator Method String Practice 3 (0) | 2019.12.26 |
| 054 - Accumulator Method String Practice 2 (0) | 2019.12.26 |