Default access modifier for classes in java are, by definition, accessible only from within its package (see here).
If you have access to source code you should consider to change the access level to public. Otherwise you can try to access that class via a public class in the same package.
package test.bankaccount;
public class Bank {
public Account getAccount(int id) {
//here goes the code to retrieve the desired account
}
}
package test.bankaccount;
class Account {
// class implementation
}
Anyway you should keep in mind that access restrictions always describes how application is meant to work. You should ask yourself why a specific class is not public.
If the classes are your own code, then ask yourself if the access restriction you put on represents correctly the way you intend the application to work.