English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to create an array list. For some reason, it won't compile. Here's the code, can anyone see why it would be doing this? Thanks.

import java.util.*;
ArrayList previous = new ArrayList(); ------not a statement

2007-01-17 05:29:28 · 1 answers · asked by snoboarder2k6 3 in Computers & Internet Programming & Design

ok, heres the general structure-I cut out some stuff that doesn't affect it because the code is almost 1000 lines long.

public class BillingCheck{
public BillingCheck() throws IOException{
boolean equals = false;
........
...................
if(equals == false){
ArrayList previous = new ArrayList();
}

thats everything that could possibly affect that line of code...

2007-01-17 05:46:54 · update #1

Oh, and I did have it as Java.util.ArrayList.*;
even though it really shouldn't make a difference

2007-01-17 05:51:43 · update #2

1 answers

you should import java.util.ArrayList;
what you do should work.
can you give me the entire file where this occurs ?

You probably made a mistake on another place in the file

2007-01-17 05:33:48 · answer #1 · answered by gjmb1960 7 · 0 0

fedest.com, questions and answers