I'm not able to print ultra-simple code in Java. You acknowledge the following error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Can not make a static reference to the non-static field at Excript_variables.main (Excript_variables.java:10)
The code:
public class Variaveis {
int inteiro = 10;
//float flo = 5.9;
double dou = 3.8;
String texto = "Oi";
public static void main(String[] args) {
System.out.println(dou);
}
}
Thank you!