Compiler treating a int as a class

I am using Netbeans IDE and I am facing one small error and this ruins everything. As the title suggests, the compiler here is assuming that variable 'i' is a class instead of an integer, even though I already declared it as an integer