Well, looks like we've solved one mystery for you. This import statement:
is failing because the package of interest here is actually called "com.opentext.basis.webtop.beans". It looks like you though that the import statement could take the name of the jar file, but this isn't right; import's argument is always a package name. The class LegalListBean is in the package com.opentext.basis.webtop.beans, so you need to write
The star means "all the classes in this package." Now, on the other hand, you want to use the class StringTokenizer, but you've written
which implies that StringTokenizer is a package, and you want the classes in that package; but that's wrong -- you want the class StringTokenizer itself, so you want to say
means that (first line) on line 19 of file list.java (second line) you're using a variable named "lists" which is undefined, and (third line) this happens while compiling the class "list".
Now, looking at your code up above, I see you using the variable "lists" (actually in your first code sample it was called "list") but I don't see where you've declared it anywhere. Java variables always must be declared before use (or while being initialized.)
Joined: Feb 26, 2003
i'm declaring the variable as a set in the following code as that is what it says the method takes in the javadoc api
if i declare the variable lists as a String type then i get the following -
I can't find info relating to the Set data type (its not a primitive is it ?)
also can i assign this Set data type to a String ? i was doing so so that it could be immutable - would it be ok to declare the input variable as a set ?
I already explained rather carefully how to read these error messages. Now let's look at this latest one:
It says that in the line "Set lists;", it has no idea what a "Set" is. That's because you didn't import java.util.Set.
Joined: Feb 26, 2003
thanks thats compiled
though i have a couple of questions -
in terms of the code above the 'cannot resolve symbol' seems to happen in a number of different error messages - or are they always particular to 'class import' messages ?
in the following section of the code does "list" require the commas as its refernce a variable and is not a data value ?
when i'm instantiating this class - (i'm going to attach it to jar file of existing classes) i'm going to omit the main method (as the app already has one), is it sufficient to just intantiate it like the following
list ls = new list()
whta i'm trying to say is does this class need methods in order to make it useful ? i wish to put it in a jsp page.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com