but how to fix it when the requirement is to make non - static field and when I try to change main to be non static there is nullpointerexception
package pl.codegym.task.task15.task1516;
/*
Wartości domyślne
*/
public class Solution {
public int intVar;
public double doubleVar;
public Double DoubleVar;
public boolean booleanVar;
public Object ObjectVar;
public Exception ExceptionVar;
public String StringVar;
public static void main(String[] args) {
System.out.println(intVar);
System.out.println(doubleVar);
System.out.println(DoubleVar);
System.out.println(booleanVar);
System.out.println(ObjectVar);
System.out.println(ExceptionVar);
System.out.println(StringVar);
}
}