If you create a method or a variable and don’t use it anywhere, you are going to take this warning (Is not an error, is a warning message)
For example (Same with methods):
int a = 0;
inb b = 1; //This variable is never used and cause a warning
System.out.println(a);