Search:

Type: Posts; User: mfredy92

Search: Search took 0.27 seconds.

  1. Re: Problems with ArrayList- gives me a NullPointerException and the program crashes

    Well, The code in the museum application is correct. There should be nothing wrong with that. This is actually a project.they gave us a half written application. The code in the museumApplication was...
  2. Re: Problems with ArrayList- gives me a NullPointerException and the program crashes

    I have posted the error above along with the code
  3. Problems with ArrayList- gives me a NullPointerException and the program crashes

    public Flask[] getArtifactsByBrand(String name){
    Flask[] myArray = new Flask[flasks.size()];
    Iterator<Flask> it= flasks.iterator();

    while(it.hasNext()){

    ...
Results 1 to 3 of 3