While learning java through an online course, I came across type conversions using helper classes. Eg:
double d = 5.99;
double do = new Double(d);
int i = do.intvalue();
However they doesn't explain how can I find the methods like do.intvalue()
if I am unaware of the existing methods. In Python, I can do a dir(do)
and it would list all the methods. How can I check the same in Java?