2,443 Posted Topics
Re: Uhm [url=http://www.lmgtfy.com/?q=Java+Flex+API]this[/url], and [url=http://lmgtfy.com/?q=Java+SSL+Tutorial]this[/url]? | |
Re: What's with that space after the last "\"? And which class/jar are you attempting to execute? | |
Re: Uhm, add a couple of newlines? System.getProperty("line.separator"); Or use two or three calls to println rather than just one? | |
Re: Because Generics is acheived through Erasure (google "java generics erasure" to find out more about this). Simply do [inlinecode]List<String>[] a = (List<String>[]) new List[5];[/inlinecode] It will give you a warning about an unchecked cast, but it works. You will be able to retreive elements from the array as List<String>'s without … | |
Re: [url]http://java.sun.com/docs/books/tutorial/deployment/jar/index.html[/url] | |
![]() | Re: Sounds like a question for the "hive" developers. |
Re: NetBeans has a JME development environment as do most other "mainstream" IDE's. Choose one and try it out (they are also able to emulate JME run environments), but you [i]will[/i] need one of the devices to deploy to to test it properly. | |
Re: See the API docs for JPasswordField. There is a method there called setEchoChar (or something to that effect). Use it. | |
Re: The first simply "gets" another reference to STDIN, the next part reads the arguments provided to the command until it finds the option "-bs" and then reads that options parameter (i.e. the next argument). The last block creates an instance the class and calls a method from it. | |
Re: No it doesn't, that's just you're editor's highlighting. If you don't want to see that then use [inlinecode]< scalar(@array)[/inlinecode] rather than [inlinecode]<= $#array[/inlinecode] | |
Re: Yes, Math.max and Math.min in a loop saving the result through each iteration. Once the loop is done, you have the max and/or min. | |
Re: What do you mean "start at one"? Do you mean that the first index should be 1 and not 0? Well, you can't. Java arrays (and the arrays of most other languages) index starting with 0. Make the array one longer and simply don't use the first index, or use … | |
Re: As long as the first String is always of the same length and does not vary over the "tabStop index" length. printf (if you're using a late enough version of it) is, of course, the proper way to do this. | |
Re: See this thread for a concept that may help you [url]http://forums.sun.com/thread.jspa?threadID=5172164[/url] then see the site referenced there (reproduced here) [url]http://www.javaregex.com/[/url] Only Perl and PHP have builtin support for this so the only resources I can point you to to help with the concept are pages concerning those languages, such as … | |
Re: Looking only at the "Area" class, which is what the assigment text was concerning, it looks just fine (you probably want to make the methods public, however), and give [i]all[/i] classes a package. Do not use the "default" package, that will only, eventually, cause heartache and pain. | |
Re: Uhm, because a column ("count" + p) doesn't exist, in that ResultSet? The [i]rest[/i] of that exception [i]would[/i] be helpful though. | |
Re: Instead of [QUOTE=Privoxy;1180655][code] StringTokenizer Tok = new StringTokenizer(curLine); String compare = Tok.nextToken(); if (userInput.equals(compare))[/code][/QUOTE] why not just [code]if (curLine.startsWith(userInput))[/code] or, if there can be whitespace at the front of the line, or the "first token" can be of varying lengths (i.e. the "userInput" might match two different tags due to … | |
Re: remove the "int" and/or "double" now, from the call to the method. You include types when [i]defining[/i] and [i]declaring[/i] the methods. You include only [i]values[/i] when [i]calling[/i] the methods. | |
Re: Uhm, to tell you the truth, the [i]compiler[/i] is helping you with that, with the messages it produces when you attempt to compile it. What are they? | |
Re: Use an ArrayList rather than an array, and you don't have to worry about all that array manipulation. And as far as "storing" the data, how do you propose to do that with an empty actionPerformed method? | |
Re: Because, since you are simply painting to the graphics in an external method, rather than overriding the paintComponent method in JPanel will cause the standard "painting" of the panel to erase it. Either extend JPanel and override the paintComponent method, or have that method create an image (use BufferedImage and … | |
Re: Uhm, forget a quote (") before SELECT? P.S. Use PreparedStatement. | |
Re: Return a List<String> maybe? Or use += instead of =, maybe? | |
Re: You declare "throws Exception" in the declaration of the method, but when you [i]use[/i] the method you are catching "STAFException". If "STAFException" is the exception that might be thrown by your method, then you need to declare "throws STAFException" and not "throws Exception". If you do use "throws Exception" then … | |
Re: Place the read routine in a separate method (if not a separate thread, as well) and don't close the reader just because EOF is encountered. Once you need to read more from the file, simply call the read method again. If more data exists in the file, at that point, … | |
Re: I would guess you have an extra '}' before the line containing the first error. Also, that [i]first[/i] error takes place on line 18803? You really need to break that thing down. You shouldn't even be [i]attempting[/i] to do [i]everything[/i] in [i]one[/i] class. | |
Re: And no, you cannot run a compiled "exe" anywhere. You can run it anywhere that has the exact same OS and architecture as the machine it was compiled for. That is exactly what Java does (except that they also work with newer versions), except that the "OS and machine" for … | |
Re: You have used only weightx and not weighty and you have only used a horizontal fill, so your elements will not even attempt to fill the space vertically, and all "unused" space in the container will dispersed evenly around the components (i.e. the "free" vertical space will be half above … | |
Re: No, the cgi script does not execute "in the browser". A CGI script runs on the server, and [i]that[/i] is where the "application" is opening. A CGI script produces HTML (or whatever other output it is designed to produce, such as XML, etc) and [i]that[/i] is what the browser gets. … | |
Re: Nice statement, but no pattern and no code. We are not here to write your code for you, but will me more than happy to help [i]you[/i] correct yours, as soon as you post it, the pattern, and a [i]specific[/i] question. | |
Re: You can delete the old versions. The worst that may happen is that some program still wants to use an old one, at which time you can alter it's configuration to use a newer one (although, in some cases, that may mean making registry changes on your own). This is … | |
Re: [code]String queryLNLike = "SELECT * FROM employees WHERE firstName LIKE in(?)"+ "'" +ln+ "%" + "'"; [/code] Like In? I don't think that could ever work. | |
Re: Because you're trying index into an array using an index value representing the length of one the Strings stored in the array. What did you hope to achieve by doing that? | |
Re: Please stop opening duplicate threads. Post your code into this thread. | |
Re: You need to call "setLocation" on f, and there is no reason for your class to extend JFrame, here, especially when you are initiating a separate JFrame. Also, you need to start the Frame in the Event thread (see [url=http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html]this[/url]). And you should probably do your query before ever instantiating … | |
Re: All of which, of course, has nothing to do with either ASP nor PHP, so what is the deal with your title? | |
Re: No, not easily (at least not if they are to change during the running of the app). If they are values being delivered, that should never change, then no problem. You would be wise to look into the Preferences API, however. | |
Re: Have you enabled redirects on the URL, as it is probably getting redirected, which URLConnection does not automatically follow. | |
Re: Platform independent solutions for an application to interact with MS Office? | |
Re: Not sure myself what bci stands for (and don't believe that you need to know), but, considering that the error is coming from sun.com.midp I have a few ideas. One, are you instantiating an instance of a com.sun class yourself? If so the warning [url=http://java.sun.com/products/jdk/faq/faq-sun-packages.html]here[/url]. Two, did you maxbe use … | |
Re: [url]http://www.regular-expressions.info/tutorial.html[/url] [url]http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html[/url] [url]http://java.sun.com/docs/books/tutorial/essential/regex/[/url] | |
Re: See [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] for things to do and watch out for when using Runtime.exec()/ProcessBuilder. It also covers reading the STDOUT and STDERR of the program executed, which is how you'll have to "get your value". | |
Re: Do [i]what[/i]? That is simply a statement of what those classes are for. | |
Re: [url=http://www.java-forums.org/new-java/26948-illegal-start-expression-error-new-post.html]Cross-post[/url] I'm outta here. | |
Re: There is another forum here for soliciting developers. If you are actually willing to do your own work, though, regex to get the "leading text" and the digits, a loop, a counter, and a variable to hold the result, then overwriting the file. Give it a try, post your code, … | |
Re: Well, show us what you have. I am quite sure, however, that the meaning of the "four numbers" is fully described in the homework description, however. | |
Re: [QUOTE=Shubhra;461876]U can write all code using scriptlet. Simply start scriptlet,create connection, write and execute update query, close connection and scriptlet. For Ex <% create connection Create query resultset execute query close connection %> Hope it provides u some help!! U can find example code in google.[/QUOTE] Which is, of course, … | |
Re: Draw over it with the background color. | |
Re: Simply creating a Calendar gets you one with todays date, and as long as that "creation" is taking place on the right hand side of an assignment expression, it has also been stored in a variable. | |
Re: No one here is going to do your homework for you. Post your attempt at it, along with the compiler messages/exceptions/problem description and any [i]specific[/i] question you have about it, and we will help you, though. |
The End.