18 questions
From Python30.33333 to float 30.333330 like int 30What should I do to change my brother?
I thought 0.5 would come out if I said 1/2, but 0 came outIf you divide two integers, you just cut off the decimal pointWhen a and b are int c = a/bHow do we get c to float as a result?a = 1b = 2print...
I want to cast an object as int. How do I do it
BigInteger sum = BigInteger.valueOf(0);for(int i = 2; i < 5000; i++) { if (isPrim(i)) { sum.add(BigInteger.valueOf(i)); }}I wrote it like this. The value of sum is always 0. Is there something wro...
inti = 11818518518518581; I know that this should be corrected to long. So I know that you have to put an L after long i = 11818518518518581L to recognize it as long.But now longi = arraylist.get(arra...
Hello! I'm asking you a question because I'm curious about the example in a Java book.public static void main(String[] args) { Integer o1 = 1000; Integer o2 = 1000; Integer o3 = new Integer(1000); Int...
Is there a way to define unsigned int in Java? What does unsigned mean in Java?I'm looking at String.hashcode right now and I want to see the possibility of a 32-bit unsigned int crash here.
It's the same as the title.How do I check if an integer is even or odd?
I know how to output the int, long, float, and double types in CI don't know how to print unsigned longprintf(%lu\n, unsigned_boo)printf(%du\n, unsigned_boo)printf(%ud\n, unsigned_boo)printf(%ll\n, un...
How can I change Long to Integer?
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.