subject

ACTIVITY 2.14.1: Printing a message with ints and chars.
Print a message telling a user to press the letter ToQuit key numPresses times to quit. End with newline. Ex: If letterToQuit = 'q' and
num Presses = 2, print:
Press the q key 2 times to quit.
import java. util. Scanner;
1 test
passed
Al tests
passed
3 public class Quit Screen {
public static void main(String[] args) {
5 Scanner scnr = new Scanner(System. in);
6
char letterToQuit;
7
int numPresses;
8
9
letterToQuit = scnr. next().charAt(0);
10 numPresses - scnr. nextInt();
11
12
13
14
15)
Run
Feedback?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
Holly created a professional development plan to explore how she could advance from her entry-level position to the next step in her career. she has identified her current skills and the skills needed for the job she wants. what should she do now? a) ask a colleague for advice about work-life balance b) identify her areas for improvement c) plan a vacation before she begins her new job d) wait until a position opens before continuing her plan
Answers: 1
question
Computers and Technology, 25.06.2019 14:00
What type of adventure/puzzle computer games can i download and not have to pay for? some games that i've played are legend of zelda and rpg games.
Answers: 1
You know the right answer?
ACTIVITY 2.14.1: Printing a message with ints and chars.
Print a message telling a user to pr...
Questions
question
Arts, 24.12.2021 01:00
question
Spanish, 24.12.2021 01:00
Questions on the website: 13722361