I am relatively new to Java, and get this occasionally myself due to the
"static main" method being typed within the class.
The issue is that you are trying to access "BF" and "str" that exist inside
a class, from a static environment (main). I think it would have helped if
the exception had been
Hi,
I have written the following code:
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
to change this license
* Click
nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java
to edit this template
*/