So I was writing this code today with header info as follows
import java.util.Scanner;
import java.text.*;
import java.util.Locale.*; <- I made a mistake here
I was supposed to do
import java.util.Locale; instead, So I wasted
alot of time trying to figure out how to get this to work.
The error I kept getting was on the method below I was using somewhere in the code:
NumberFormat nf = NumberFormat .getCurrencyInstance (Locale.US);
error: Cannot find symbol variable locale.
I nearly lost my balance because of this. I thought if the Api had just shown how to import the damm thing it couldve been avoided. What sites do you guys refer to when in such a situation