I'm having trouble printing a double number, for example I create a variable of type double, and it receives the one division 1/3, it would have to show 0.3, What do I have to do to print 0.3 ???
public class MeuTeste{
public static void main(String [] a){
double x=1;
double y=3;
System.out.println(x/y);
}
}
//0.3333333333333333