2,443 Posted Topics
Re: Okay? You have an array somewhere with three elements (or less) meaning it has indexes 0,1, and 2, and you are trying to access index 3. | |
Re: Check out the "eval" command. Edit: I.E. [code]eval "echo \$${AGENCY}_INCOMING_READY"[/code] | |
| |
Re: [b]uploading images[/b] [url=http://lmgtfy.com/?q=Java+File+Upload]Java File Upload[/url] [b]db "connectivity"[/b] See [url=http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html]the tutorials[/url] [b]MS Access[/b] [url=http://lmgtfy.com/?q=DSNless+ODBC+MS+Access]DSNless ODBC MS Access[/url] | |
Re: [QUOTE=jbennet;381568]i didnt vote so not my problem[/QUOTE] This is way too late, but, if you didn't vote, then it is your porblem, and actually, you are part of the problem. If you don't vote, you also have no right to complain. Write in your own candidate if you have to … | |
Re: ArrayList (and this looks familiar. Did you post this same question on Sun? Yes.) | |
Re: Well, I am sure someone can, but this is not the proper forum. Try an HTML forum? Or a JavaScript forum? | |
Re: See the API docs DatabaseMetaData. Good luck with the password, though. The JDBC Driver will not provide that info (or, at the very least, [i]should[/i] not). | |
Re: [code] List<String> list = Arrays.asList(string.split()); [/code] | |
Re: Well, first off, why are you not using the Stack class, rather than a LinkedList? Also, rather than doing Temp.clear() create a new Stack and assign it to Temp, because at that point Input and Temp both reference the same List/Stack and so you clear the Stack/List referenced by both … | |
Re: Or Andy Khan's jxl (Don't believe this works as of Office 2007, however). As last resort you can use the JDBC-ODBC Bridge. | |
Re: Please post the [i]exact[/i] and [i]complete[/i] message. | |
Re: [QUOTE=jeniferandrews;1052309]no i have not set the class path for this driver.... but even if i use the access database an exception is raised as "[microsoft] Invalid descriptor exception"[/QUOTE] Well, that's a different exception, isn't it? What does the one have [i]anything[/i] to do with the other? You need to print … | |
Re: So, waited until the last minute to do your project, huh? The bar's were just too tempting, huh? Well, good luck. We are not going to do this for you. Try rent-a-coder. | |
Re: We are [i]not[/i] here to do your (home)work for you. We are more than happy to [i]help[/i] you with it, but [i]you[/i] have to do it. Show us what you are trying and we will help you to correct it, or describe what part of the problem you are having … | |
Re: See [url]http://java.sun.com/docs/books/tutorial/deployment/applet/appletMethods.html[/url] You are missing the methods that actually count for anything. You want to move most of the stuff in your constructor to the init method and you want to define the other three. | |
Re: Yes it will. Why don't you try showing us what you tried. P.S. Did you try typing "man touch" first? | |
Re: Does Mac [i]have[/i]/[i]use[/i] OpenGL? | |
Re: I'm afraid you are going to have find a support link at the site from which you are downloading. | |
| |
Re: by, instead of calling [inlinecode]javac <filename>[/inlinecode] calling [inlinecode]javac -Xlint:deprecation <filename>[/inlinecode] and letting the compiler tell you exactly what it doesn't like. The message, however, [i]is[/i] only a warning. | |
Re: The code [i]might[/i] help. However, marking your post as "URGENT" is [i]extremely[/i] rude. Suggesting that [i]your[/i] problem is more important than anyone elses and more important than anything we, ourselves, might be doing and so we should drop everything we're doing and concentrate on [i]your[/i] problem. Well, I'm sorry, but … | |
Re: Gladly. Show what you have, and let us know exactly what problems you are having with that. | |
Re: No. That 500 sets the initial size of the array that "backs" the arraylist, as well as the size of all subsequent arrays used to back the arraylist once it exceeds that size, but the "indexes" are populated from front to back and are not "immediately" available. If the arraylist … | |
Re: Java does not [i]have[/i] an Eval. You would have to either parse it and perform actions logically, or you would have to create a class "on the fly", either with BCEL (Google that) or by generating and then compiling code, or you can look into the scripting engine support in … | |
Re: Find out what it is suppossed to be doing and reprogram it in Java. Trying to achieve a 1-to-1 translation is an exercise in futility, and, even if you do get it to run, it is not likely to be at all performant. | |
Re: Every time you execute "java" from the command line you are starting another JVM. | |
![]() | Re: Simply connect and catch the exception. On an exception, it is, seemingly, not running, or not running properly. Use HttpURLConnection and connect to the [i]actual[/i] site and you can even check the returned http codes (i.e. 404, 501, etc). ![]() |
Re: Well, you are doing your recursion wrong. Do you really want to recurse before printing the first character (which you're not doing anyway since the recursive method doesn't return anything), and then recurs [i]again[/i]? You need to println charAt(0), then recurs substring(1) | |
Re: So do it the same way for MySQL, just with different strings for the Driver and url. | |
Re: [code] public class TheCode { public void getDataFromDB(Dropdown b) { b.populateList(); } } [/code] | |
Re: [url]http://www.regular-expressions.info/tutorial.html[/url] | |
Re: Seems as though it is Strings stored in the map and that the map was declared using generics. So, why are you trying to use a String as a List? IOW, what is in the map and what are you trying to do here? | |
Re: Why don't you try it and find out? I'm sorry, but you claim to be jumping into Java quickly, on your own, because you already know a couple of other languages. Well, I need to ask, what "other languages" do you know? Because in that thread you had no idea … | |
Re: Okay? And your question is? Just so you know, we are [i]not[/i] going to do it for you. | |
Re: Read the result into a two-dimensional array and then use [code] ((DefaultTableModel) jTable.getModel()).setDataVector(<2darray>, <columnNames>); jTable.repaint(); [/code] Edit: P.S. Since you cannot, reliably, know, beforehand (without some futzing around), how many rows the resultset contains read it into a List<String[]> and then use List's toArray method to get the List as … | |
Re: $file_name, not file_name ditto for the other variables use "sed -e" not just "sed" and change $file.new to ${file}.new just to be safe Edit: So many problems, so little text. ;-) | |
Re: Then also check with [inlinecode]if (newRPos < protString.length)[/inlinecode]. Also, is there any guarantee that input.length() is going to be larger than newRPos, as both of those are indexes (i.e. a start index and an end index) not a start and length, and I don't know how substring reacts if the … | |
Re: BufferedReader, readLine, a counter, and String's split. | |
Re: Configure the ssh to use private keys. | |
Re: No it doesn't. Does the real class maybe have a constructor? And does that constructor maybe also call new on itself? If so, what do think will happen if every call to new results in another to call new? | |
Re: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/button.html[/url] | |
Re: Add a System.out.println(System.getProperty("user.dir")) in there. Otherwise use the search function for the OS. But, the [i]best[/i] way is to provide the full path to the file from the beginning. Why simply deal with defaults that can change due to configuration and/or operating parameters when you can [i]control[/i] the operation. | |
Re: You don't load the jar, you load the Driver class and include the jar on the classpath. See the [url=http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html]Tutorial[/url] and the MySQL [url=http://dev.mysql.com/doc/refman/5.4/en/connector-j-usagenotes-basic.html#connector-j-examples-connection-drivermanager]manual[/url] for MySQL specific examples | |
Re: So use a JTextArea, then, instead of using System.out.print or println, you use the JTextAreas append. | |
Re: Strings can, of course be values in a hastable, but what does that have to do with the rest of the question? What do you mean by "method generated Strings" and "plug them into another method"? Also, whatever it is, HashMap would probably be a better choice than Hashtable, unless … | |
Re: Considering that you mentioned "email2.php", I assume you are running this from a hosted server? Well, does the "jar" run from the server? You say the "jar" worked, do you mean locally, or from that hosted server. Because I have the feeling that your site provider's firewall is refusing the … | |
Re: Wrap the thing from that point on in a [inlinecode]while (!phrase.equals("quit")) {[/inlinecode] loop. |
The End.