menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Suppose you have an int variable called number. what java expression produces the second-to-last digit of the number (the 10s place)? what expression produces the third-to-last …
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Suppose you have an int variable called number. what java expression produces the second-to-last digit of the number (the 10s place)? what expression produces the third-to-last …
asked
Jun 23, 2018
220k
views
0
votes
Suppose you have an int variable called number. what java expression produces the second-to-last digit of the number (the 10s place)? what expression produces the third-to-last digit of the number (the 100s place)?
Computers and Technology
high-school
Kevin Walter
asked
by
Kevin Walter
8.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
3
votes
private int number = 123;
// using this number "123"
int hundred = (number % 10); // gets third to last
number /= 10;
int tenth = (number % 10); // gets second to last
number/=10;
int ones = (number % 10); // first digit
Duende
answered
Jun 29, 2018
by
Duende
8.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
Oct 25, 2020
19.2k
views
Suppose you have an int variable called number. What Java expression produces the second-to-last digit of the number (the 10s place)? What expression produces the third-to-last digit of the number (the
JF Simon
asked
Oct 25, 2020
by
JF Simon
8.9k
points
Computers and Technology
high-school
1
answer
2
votes
19.2k
views
asked
Jul 26, 2021
36.9k
views
Suppose you have an int variable called number. What Java expression produces the second-to-last digit of the number (the 10s place)? What expression produces the third-to-last digit of the number (the
Seberg
asked
Jul 26, 2021
by
Seberg
8.2k
points
Computers and Technology
high-school
1
answer
3
votes
36.9k
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.
Seven basic internal components found in a computer tower
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?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org