Status: Not Started
Quick Docs
User Input
// Read a string
String str = readLine(prompt);
// Read an integer
int num = readInt(prompt);
// Read a double
double myDouble = readDouble(prompt);
// Read a boolean
boolean bool = readBoolean(prompt);
// You should replace the word prompt with
// the question you'd like to ask. For example:
int age = readInt("What is your age? ");
- AboutYou.java
Font Size
14
Parentheses autocomplete
Wrap lines
Editor
Theme
Code with blocks by default
Console Font Size
12
Console Theme
Display Server Graphics Screen
Show File Tab Bar
Debug Mode
12 About You
AboutYou.java
1
2
public class AboutYou extends ConsoleProgram
{
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output
Docs
Exercise
More
History
Textbook
Video
Download
About
W
This student is viewing this assignment in English. View this page in English?
3 points
Write a program that takes in user input to ask the following questions:
“What is your favorite food?”
“What is your favorite color?”
“What is your favorite movie?”
After asking these three questions, print out the answers on their own lines.
An example output would look like this:
pasta
green
The Lego Movie
Reset Code
Upload an image
Upload from your computer
Or paste a link here
Slides and Notes
No slides available for this video
About
Java (console)
Java Version 1.8.0_222