I am new to OOP concepts, and I get an error: cannot find symbol. Also during compilation, i get the 2 errors:
Error:(9, 35) java: <identifier> expected
Error:(9, 36) java: illegal start of type
Any help would be greatly appreciated. Here are my two classes:
package com.company;
public class Main {
public static void main(String[] args) {
}
TestClass waterBottle = new waterBottle();
waterBottle.bottleFill(5);
}
package com.company;
public class TestClass {
TestClass() { }
public void waterBottleFill(int y) {
int bottleFill = y;
System.out.println("Fill level is at:" + bottleFill);
}
public void waterBottleRefill(int x) {
int refill = x;
}
}