2,443 Posted Topics
Re: If you'll notice, $_ in the hash is [i]inside[/i] the foreach loop, meaning that it refers to that individual value for that iteration of the loop, or a single value resulting from the split of "string of distances" making it refer to a single distance. | |
Re: Seeing [i]your[/i] code would help. | |
Re: One thing you should know about "static final" variables (at least "public static final", but probably also for "static final" and "protected static final", although I haven't tried those), and that is that their values get compiled [i]directly[/i] into the classes using them. I.E. compile [i]both[/i] of these classes [code] … | |
Re: BufferedReader, readLine(), and split("/+|\s+") | |
Re: By writing a stand-alone application to do this and using a cron-job to "run it daily". A JSP is [i]not[/i] the right tool for this task and it [i]never[/i] was. Use the right tool for the task. | |
Re: Because it's not. In that example it is the "MainTest" class, not the "ClassTest2" class that is attempting to access the method. It is simply [i]using[/i] an instance of ClassTest2 to try and access it, but it [i]is[/i] MainTest that is trying to access it. Add a call to "display1" … | |
Re: Depends on the environment. Do they have [i]only[/i] Windows servers on which this might run (and I am not talking about the clients, I am talking about the servers). My guess would be no. They probably have a group of mainframes, AIX, Solaris, HP, etc machines, on which .Net won't … | |
Re: Completely wrong. JSP holds a much larger share of all sites that are more than "hobby" sites, as compared to PHP and ".NET" [i]anything[/i]. And where did you get the idea that PHP and ".net" [i]anything[/i] are "where the jobs are at"? | |
Re: Well, concentrate on the first one and try to fix that, then compile again, and again, concentrate the "new" first error, repeat the process. | |
Re: It seems to me you have everything you need, except "teh codez", of course, but those you're going to have to make yourself. Now that that comment is out of the way, what do you [i]need[/i] help with here? What about those requirements do you not understand? | |
Re: [url=http://www.java-forums.org/new-java/31007-downloading-files-server.html]cross-post[/url] And, according to a post in [i]that[/i] thread, he's very happy to let people waste their time. | |
Re: Go to [url]http://java.sun.com/[/url] and go to the "Training->Certification" menu item. | |
Re: javac [url]http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html[/url] | |
Re: And as a "diploma" student you don't learn how to write? Creativity is also not desired, it seems (i.e. you can't even think of a [i]possible[/i] "topic"). Self-reliance is also not found in the class description or you'd have used Google and found a million other threads that ask this … | |
Re: By following the instructions contained in the plug-in's documentation. | |
Re: [QUOTE=weasy;613506]As for the problem, you might want to use php for the multiple files. It's easier .[/QUOTE] That's a question of taste, and opinion. [i]Easier[/i], I wouldn't say, just different. | |
Re: JavaScript != Java Have already asked the admins to move this thread. | |
Re: Read this [i]entire[/i] [url=http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/java/package/packages.html]tutorial[/url]. | |
Re: [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] | |
Re: Uhm, like 2 and not like \%20, maybe? IOW, define a better query. | |
Re: So search on the forum. This question has been asked literally hundreds of times. Usually ridiculed, but there are [i]some[/i] suggestions. If you feel you absolutely [i]must[/i] ask, then start a thread, but be prepared to be ridiculed. Closing this thread. | |
Re: A hash with the values as keys and a one up number as the values. | |
Re: - Clone the first arraylist into a third arraylist - Call removeAll on the third arraylist using the second arraylist - Clone the second arraylist into a fourth arraylist - Call removeAll on the fourth arraylist using the first arraylist - Call addAll on the third arraylist using the fourth … | |
Re: Literal Strings are "interned" and exist only once regardless of how many times they are used in a program. new String(...) creates a String that is not interned and is completely independent to anything else (and doing it with a literal string in the constructor means that two string get … | |
Re: Because a SimpleDateFormat is a SimpleDateFormat [i]not[/i] a String. new Date() will give you the current Date. and SimpleDateFormat's format method will allow you to format a String representation of that Date in any format you want. Now, armed with that info and the [url=http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/]API docs[/url] try it again. | |
Re: HttpUrlConnection or HttpsUrlConnection. It is possible to use Cookies and post requests and authentication with both of them. Search for some tutorials concerning them. | |
Re: call pack on the frame in which the component resides or call doLayout (and/or validate) on the component to which the component was added and [i]then[/i] repaint Edit: Although, in the second scenario, the layout of the frame itself (if the size of "subcomponent" has changed) will also, still need … | |
Re: Read up on J2ME (or with the newest versions JME). | |
| |
Re: If all you are ever going to do is make "skins" for display, no, otherwise, yes. There is much more to "JSP" than just the syntax of the actual jsp pages. And, even if you do only ever make "skins" it is still helpful to understand "what is going on … | |
Re: Of course, that second part of the if statement is completely false anyway. That is what the for loop is for. [code] public static int nameSearch(String[] inOrder, String searchedFor){ int returnVal = -1; if (searchedFor == null) { // if searchedFor is null the if in the for loop will … | |
Re: Who says there is any? I find it extremely lazy of people to expect there to be software programs that will convert code from one language into code from another. Both languages will have there own idioms, syntax, and "way of doing things", and it is almost guaranteed (regardless of … | |
Re: You also forgot the semicolon in the library method on the following line: [code] yearpublished = yrpub [/code] which is exactly what your first error message says: [code] libmainsys.java:19: ';' expected yearpublished = yrpub ^ [/code] | |
Re: Yes. [url]http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/essential/regex/[/url] [url]http://java.sun.com/developer/technicalArticles/releases/1.4regex/[/url] [url]http://www.regular-expressions.info/tutorial.html[/url] | |
Re: echo "string" | grep "pattern" | |
Re: As also said [url=http://www.daniweb.com/forums/thread293686.html]here[/url]. And, there was an old thread in which I had already said this, too. Stop starting new threads simply because you don't like that people are not telling you "yeah you're doing everything right, Java is just corked and so it's not working". | |
Re: Yes, it does, but that "source file" is still not any kind of standalone application code. It is a servlet. You do understand the differences between servlet/jsp (i.e. code that runs in an application container) and a standalone application, right? And, since you would probably only be providing a compiled … | |
Re: Look at the API for Color. What are those int values in that statement? Now, what do you think you might try if you want Green? In any case, see the Class JColorChooser, and then Google for the JColorChooser demo and run it. | |
Re: Yes, and No. A implements, and so, by default, those methods are "available" through the B Class, since B [i]is[/i] an A, but B, it self, does not, technically, implement the other interface. | |
Re: I am sorry to disagree, but learning on an IDE is not the way to go. You should learn the basics (compilation, execution, jarfile packaging, classpath manipulation, basic syntax, etc.) using a simple text editor and the command line. Whenever you do it the other way, you learn some hard … | |
Re: I'm sorry, but [url=http://www.lmgtfy.com/?q=Java+SNMP+API]Google's[/url] [url=www.snmp4j.org/]first hit[/url] [i]looks[/i] promising, doesn't it? | |
Re: And again, [url=http://www.daniweb.com/forums/thread293686.html]here[/url]. Closing both this thread and the referenced (in this post) thread. | |
Re: As I have told someone else (you I believe) use a BufferedReader, while, reader.readLine, string.startsWith, and string.endWith. Give that a try and post the code, if it "doesn't work", with a complete description of the difference between expected and actual results, along with any and all compiler/error messages. | |
Re: How about a grammar and spell checker? | |
Re: Maybe we could if you described the problem, but don't expect any cut-n-paste code answers, of course. |
The End.