masijade 1,351 Industrious Poster Team Colleague Featured Poster

See this on how a table is created in html. Then add the necessary tags and logic.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Add the proper tags?

See this for help with some of the standard jstl tags that can help with this.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Eww, that with the notification email could also turn out to be a windfall for the hackers. What's to stop them from sending a phishing attack (although that is not really necessary, but could also give them the "new" password) or trojan email using that as the bait?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

With a Scanner or InputStreamReader and a for loop and an if statement with one else if and an else.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Is your command possibly the "more" command? Try cat.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, WHAT exception is it throwing, or what compiler message is resulting. Both java (if it is runtime) and javac (if it is compiletime) will tell you EXACTLY what the problem is (it can sometimes be a bit difficult to interpret, though) but we CANNOT help you unless you tell us WHAT THOSE MESSAGES ARE. Again, the problem description "doesn't work", doesn't help.

AND, you have ALREADY been told NOT to use "int" on that line.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

WHAT errors!? The problem description "doesn't work", doesn't help.

Edit: Although, if I remember right, you MAY want to do nextLine() immediately after the line using nextInt() or your Scanner will still be stuck on the previous line of input, and attempt to read the newline as the int in the next nextInt() call.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Ahh, yes, didn't REALLY look, that is not an instantiation of the array, but a defining of one of the elements, DOH!

Dang unformatted code blurb!

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Finished.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Look at the positioning of you brackets. Is that right? I don't think so. For a comparison, look at the positioning of the brackets used in the declaration of the main method.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

reegex to remove the "and" and "or" and "()"
split
print

masijade 1,351 Industrious Poster Team Colleague Featured Poster

So that people do not have to repeat themselves this is also posted here.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

P.S. What does this have to do with Java?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Use nextLine (as intimated by James in his first post) and, unless you are not allowed to as part of this assignment, use replaceAll and some regex (keyword word boundary).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Nothing will, initially, be created on the heap, except of course, that which ArrayList itself needs. Well, I can't say nothing, the initial "list" will contain 10 "slots" so the memory needed for those references (4 bytes each) as well as the reference for the ArrayList itself (also 4 bytes) will be created, as well as the 8 bytes for the serialVersionUID (but that is static), the 4 bytes for the "size" int, the 4 bytes for the "max_array_size" variable (also static), and another static "max_array_size" (4 bytes) from AbstractCollection. IOW, completely negligable.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

See the JDBC tutorials for PreparedStatement. Cobbling together a statement like this is just BEGGING for problems. Not only for syntax problems like you have, which can even come if the code is right, because what happens if the text for a field value contains a single quote (')? But it also opens you up for SQL injection attacks. E.G. What happens if the text for the last field value is bogus'); delete from table1;?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

That "mtime" is modification time, read from the file meta data, it does not need to be in the name, at all. If you want to remove the files you need to change the ls command to an rm command, of course. run "man find". You might also want to look into the xargs command.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

This is definitely a system-level sort of program and NOT the thing Java was intended for. If you intend to "drive on" with this then Google for "java jcap network", jcap, although not intended for what you want, MIGHT, if you investigate the code, give you some hints as to what to do.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

You should be writing an abstract class that declares abstract methods, then a class that extends that abstract class and implements those abstract methods, then a third class that uses that extended class (probably in a variable declared as the abstract class type) that uses those implemented methods to perform some calculations.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

See the tutorials. Start with the "sticky" thread in this forum.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Start your own thread. But as a quick answer, see the tutorials, they have one that specifically covers menus and menubars, including separators.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

I would say, first, to contact whoever you got this "Tribot" from, and second to file a bug report with oracle.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

I'm fairly willing to bet that those Oracle customers with the correct support contract DO have a fix.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Lets say the variable contianing "highway" is "var", then

${table[$var]}
masijade 1,351 Industrious Poster Team Colleague Featured Poster

I know little about Spring. In JEE 6/7 most of these frameworks are no longer needed. IMHO.

masijade 1,351 Industrious Poster Team Colleague Featured Poster
for arg in "$@"
do
  echo `pwd /${arg}`
done

Although I do not know why you are including a leading slant there, or, actually, ANY argument to pwd. Or are you intending to pass an OPTION to pwd, in which case it should "-" and not "/". "/" is the windows form for options.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It is reading a csv, the first block counting the number of "fields" on the first line and the second counting the number of "fields" on the second line. I have NO IDEA why, though.

I will also say it is doing it INCORRECTLY. Looking at the fact that they are striping the quotes from the fields, I assume that it WANTS to read correctly formatted csv (i.e. "fields" separated by commas, with fields containing a comma being quoted, and quotes in a quoted field being escaped by another quote SQL style), BUT the split splits on the commas REGARDLESS of quotes, and so commas contained within quoted fields are not handled correctly, and neither are quotes within a quoted field.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Ah, yeah, just now noticed I said "leading and trailing whitespace". I obviously meant "leading and trailing quotes". Oops!

masijade 1,351 Industrious Poster Team Colleague Featured Poster
@ManagedBean
@ApplicationScope
public class YourClass ...

In Servlet:  getServletContext().getAttribute("yourClass")

In JSF: #{yourClass.whatever}
masijade 1,351 Industrious Poster Team Colleague Featured Poster

no! that's UUOC (at least).

Correct. Its been years since I have had to do that.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It looks as though a line of text has previously been split (probably on whitespace or commas) and is now being looped over and those lines are removing leading and trailing whitespace. It seems as though it is reading a file of comma separated values.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Of course you can write functions in shell scripts and call them with arguments. I think you should try finding a shell scripting tutorial. There is probably one (in pieces) at the site I linked you to in the other thread.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

What do you mean "process"? If you mean you want to edit the lines of file, you CAN'T (AFAIK). Not the way you think, unless you want to use the "e" command (or something similar) to do line editing. Otherwise, it is best to use a for loop over a cat command and read the lines, writing to a new file, then replacing the old file with the new file.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Those look like functions that someone wrote locally (I haven't done Perl in a while so I may be mistaken, but I do NOT remember functions with those names as part of standard Perl or its standard extension modules).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

See This.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

We will probably need something better than "or something like that", but my first guess would be to check the configuration of your local mail server. Can you send mail through it using an other mail tool?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And NOW its 7+ years.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

try mvn dependency:build-classpath

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It depends upon what you want to do.

Sorry rubberman, but did you maybe reply in the wrong thread?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

At least in the bash and korn shells there are associative arrays, essentially hashes.

See this for bash and this for korn.

masijade 1,351 Industrious Poster Team Colleague Featured Poster
 for (x = 0; x < 5; x++)
    System.out.println("This is x:" + x);

When you do not use braces { } to demarcate your blocks (whether for if, for, when, whatever) then ONLY the next statement is part of that block.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Okay? Sorry to hear that, but what is your question again?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

I give up.

I can't say it in any other way than that the jar containing that class is NOT on the classpath (or is referenced on the classpath but it does not exist) on the machine where it does not "work".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

In other words, the jar file is on the classpath on the machine where it "works" and is NOT on the classpath on the machine where it does NOT "work".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And that changes my request how?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Show the blocks of css and the jsf code where you expected those to take effect.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Uhm

throw new SecurityException()

and

throw new StackOverflowError()

maybe?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

When I google "java fuzzy logic library" the very first link is an Open Source library project and the second link is a "detailed example". Did these not work for you?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Okay? And that changes that fact how?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Sounds like you do not have their jarfile on your classpath.