menu
Qammunity
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
How do i write this in c++ = scnr.nextInt(); please help
asked
Aug 18, 2018
170k
views
4
votes
How do i write this in c++ = scnr.nextInt();
please help
Computers and Technology
middle-school
Paveldroo
asked
by
Paveldroo
7.1k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
4
votes
int whatever = scnr.nextInt();
Although usually when a class has a next* member function, it usually needs to check that there IS a next, that you haven't reached the end. Without knowing the class that scnr was instantiated from, I can't guess.
IsaacLevon
answered
Aug 22, 2018
by
IsaacLevon
9.1k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Dec 11, 2020
227k
views
import java.util.Scanner; public class TeenagerDetector { public static void main (String [] args) { Scanner scnr = new Scanner(System.in); boolean isTeenager; int kidAge; kidAge = scnr.nextInt(); /* Your
The Artist
asked
Dec 11, 2020
by
The Artist
7.6k
points
Computers and Technology
college
2
answers
0
votes
227k
views
asked
Dec 20, 2020
82.7k
views
Write two scnr.nextInt statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and the year. End with newline. The program will be tested with
Shammara
asked
Dec 20, 2020
by
Shammara
7.8k
points
Computers and Technology
college
1
answer
0
votes
82.7k
views
asked
Jan 24, 2021
106k
views
import java.util.Scanner; public class FindSpecialValue { public static void main (String [] args) { Scanner scnr = new Scanner(System.in); int specialNum; specialNum = scnr.nextInt(); if (specialNum )
Lovntola
asked
Jan 24, 2021
by
Lovntola
8.6k
points
Engineering
college
1
answer
4
votes
106k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity