import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; public class LazyHomerBeerCreationChallenge { public static int i = 0; public static Beer beer; static void createBeer() { if (beer == null) { try { Thread.sleep(200); b...
Meaning you cannot instantiate it from outside the package: com.adeptengr.EncryptDecrypt. That is why you are receiving the "Unable to find constructor.." exeception. It is not that CF cannot find the constructor, it just is not allowed to access it. The solution is to explicitly ...
For the getName method in the first class it is an instance method meaning that it will work on an instance of a Class1 object. You would use this if each instance of the class had it own name so that the name returned would be unique to that instance. You would use the static ...
Meaning you cannot instantiate it from outside the package: com.adeptengr.EncryptDecrypt. That is why you are receiving the "Unable to find constructor.." exeception. It is not that CF cannot find the constructor, it just is not allowed to access it. The solution is to explicitly ...