Creating Variables and Printing 3
For you to do:
-
Create a boolean variable called "isTrue" and set it to false
-
Create a double variable called "money" and set it to 99999.99
-
Print the variable "money" first
-
Then print the variable "isTrue" without skipping to the next line.
class Main {
public static void main(String[] args) {
boolean isTrue=false;
double monet=99999.99;
System.out.print(monet);
System.out.print(isTrue);
}
}
반응형
'Java_beginner(Repl.it) > Auto-Graded-Course(AP CS A)' 카테고리의 다른 글
006 - String Methods - Length (0) | 2019.11.26 |
---|---|
005 - Creating Variables and Printing 5 (0) | 2019.11.26 |
004 - Creating Variables and Printing 4 (0) | 2019.11.26 |
002 - Creating Variables and Printing 2 (0) | 2019.11.26 |
001 - Creating Variables and Printing 1 (0) | 2019.11.26 |