I'm writing a program for my computer science class and I was having an issue with an equation. It wasn't until I started breaking the code up until I realized that all my doubles are being rounded down. For instance:
public static void test(){
double var = 4/3;
System.out.println(var);
}
This will print "1.0" to the console. I have commented out everything else in my code aside from the main method, which only calls this. Please help