Here's the question you clicked on:
Brenar
Java, netbeans. Why does the following code get an output of 3.0? int a = 32, b = 10; double c = a/b; System.out.println( "The value of c is " + c ); I know that double treats values as integers, yes? So if I did: double a = 32, b = 10; double c = a/b; System.out.println("The value of c is" + c); I guess I'd just like clarification between the types of data int and double handle.
a and b are ints. What is integer division in Java? 32/10= ?? vs 32.0/10.0= ??
http://www.cs.umd.edu/~clin/MoreJava/Intro/expr-int-div.html