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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -