java - Symbol could not be found -
i try call accumulator
class in program, symbol cannot found.
public static void main(string[] args) { login c = new login(); accumulator d = new accumulator(); ^ ^ }
it depends on accumulator
class from. did write yourself? can either use ide or accumulator
class find out package. example, if had class:
package com.myapp; public class accumulator { // code here }
you have declare import
statement in class want use accumulator
, this:
package com.myapp.other.package; import com.myapp.accumulator; public class otherclass { public static void main(string[] args) { login c = new login(); accumulator d = new accumulator(); } }
Comments
Post a Comment