Wildcards

Hi

I am working on a small application using ireports. One report has the option of searching by a given parameter or simply returning all records. It does this by using an expression to filter the records returned by an SQL query. At the moment I have had to create two separate reports each using the same query with one being filtered. It would be nice if I could simply allow the user to have both these options with just the one report.

My question therefor is this:

Will java allow the use of wildcards in a camparison expression such as where anyString.equals(wildcard)

. This expression would effectively return true for every record returned by the main query and display them all.

[721 byte] By [greenockboya] at [2007-11-26 16:39:14]
# 1
I am no expert in this area, but I would reccomend that you take a look at regular expressions - regex. Java fully supports these now and it may be the answer to your question.
Tillermana at 2007-7-8 23:06:06 > top of Java-index,Java Essentials,Java Programming...