how do i find the values of A,B and C in java

given the following values X,Y,Z, such as (0≤X,Y,Z≤10000) with considering the following three equations : a+b+c = X abc = Y a^2 + b^2+ c^2 = Z i need to find values of a, b and c, I wrote …

Why int j = 012 giving output 10?

In my actual project It happened accidentally here is my modified small program. I can’t figure out why it is giving output 10? public class Int { public static void main(String args[]) { …

Save an integer in two digit format in a variable in Java

How can I store an integer in two digit format in Java? Like can I set int a=01; and print it as 01? Also, not only printing, if I say int b=a;, b should also print its value as 01.