So I was trying to read a file, this is my piece of code;

```
try{
        FileReader fr = new FileReader("mikuname.txt");
        BufferedReader br = new BufferedReader(fr);

        String str;
        while ((str = br.readLine()) != null){
            System.out.println(str + "\n");
        }

        br.close();
    }

```

But when compiling I get an error saying "Syntax error on token "try" please delete this token"

Any idea how I can fix this?
Thanks!