jackieoh
0
Newbie Poster
Recommended Answers
Jump to PostHi jackieoh and welcome to DaniWeb :)
Not sure exactly what your question means, but if you want to output "%" character to the console you do this:
System.out.print("%");
If that's not what your question meant, please let us know what you are trying to do.
Jump to PostThe % or modulus operator gives, as its answer, the remainder after division. So 3 % 3 = 0 and 3 % 2 = 1 and 11 % 3 = 2
All 6 Replies
darkagn
315
Veteran Poster
Featured Poster
jackieoh
0
Newbie Poster
jackieoh
0
Newbie Poster
BestJewSinceJC
700
Posting Maven
jackieoh
0
Newbie Poster
BestJewSinceJC
700
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.