Forum: Java 1 Day Ago |
| Replies: 3 Views: 128 Okay? And what have tried? |
Forum: Java 3 Days Ago |
| Replies: 3 Views: 162 Because that brace after the list of values for the enum ends the enum. Remove it and replace it with a semi colon.
Then the second "TypeOfStudent "method" is actually a constructor, and since it... |
Forum: Java 3 Days Ago |
| Replies: 3 Views: 162 Exctly as it says. Compare line 75 with line 54. What's missing at the front of the line 75 statement? |
Forum: Java 3 Days Ago |
| Replies: 5 Views: 145 You were much better off with a PreparedStatement, you just need to do it right
pstmt = conn.prepareStatement("select Cust_fname from Customers where Cust_Id = ?");
Edit: javaAddict attempted... |
Forum: Java 3 Days Ago |
| Replies: 20 Views: 295 Then that is the compilation error. On which line does that occur.
But I can tell you, that most of the class defination of "Listed" needs to be contained within a Method and not directly under... |
Forum: Java 3 Days Ago |
| Replies: 20 Views: 295 Compile the project?
Read the manual to find out how, if you must. |
Forum: Java 3 Days Ago |
| Replies: 1 Views: 126 With the API docs for Image?
With the Swing Tutorials?
With the Threading Tutorial?
With the "Getting Started" Tutorial? |
Forum: Java 4 Days Ago |
| Replies: 5 Views: 145 Provide the full stack trace please. That message doesn't help at all, and it doesn't even seem to be produced by this piece of code. |
Forum: Java 4 Days Ago |
| Replies: 20 Views: 295 There is more than that. That occurs when you try to execute a project within Eclipse that hasn't been successfuly compiled yet. It would definately help to have the compilation messages. |
Forum: Java 4 Days Ago |
| Replies: 8 Views: 160 And I just told you. It is because x is 0 so that equation for y becomes 0-0+4, which is 4, of course. |
Forum: Java 4 Days Ago |
| Replies: 20 Views: 295 It might help to know what these nebulous "errors" are. complete error message with stack traces (where applicable), please. |
Forum: Java 4 Days Ago |
| Replies: 1 Views: 105 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. |
Forum: Java 4 Days Ago |
| Replies: 8 Views: 160 Because what is automatically "converted" is the result of the operation, not the individual pieces of the operation. Therefore, the operation consists of two Integers 2/3, therefore Integer math is... |
Forum: Java 4 Days Ago |
| Replies: 8 Views: 160 Because 2 and 3 are Integers, so pure Integer math is performed.
Use a literal double (i.e. 2.0 instead of 2) or cast at least one of them to a double
double a = (double) 2 / 3;
// or
double b... |
Forum: Java 5 Days Ago |
| Replies: 1 Views: 111 uploading images
Java File Upload (http://lmgtfy.com/?q=Java+File+Upload)
db "connectivity"
See the tutorials (http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html)
MS Access... |
Forum: Java 5 Days Ago |
| Replies: 4 Views: 153 IMHO, not really since they are different sites (as long as you keep them all up-to-date with your progress), but many people consider even that cross-posting (I consider cross-posting to be posting... |
Forum: Java 6 Days Ago |
| Replies: 4 Views: 153 ArrayList (and this looks familiar. Did you post this same question on Sun? Yes.) |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 161 See the API docs DatabaseMetaData. Good luck with the password, though. The JDBC Driver will not provide that info (or, at the very least, should not). |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 143 |
Forum: Java 6 Days Ago |
| Replies: 5 Views: 193 Huh? An "ArrayList" doesn't do any splitting whatsoever and what you are splitting on is "$$". Are you telling me that you have a String such as
a,b,c$$d,e,f$$g,h,i
And you want to get three... |
Forum: Java 6 Days Ago |
| Replies: 5 Views: 193 List<String> list = Arrays.asList(string.split()); |
Forum: Java 6 Days Ago |
| Replies: 3 Views: 248 Did you not read the part about your reassigning and then clearing Input and Temp? That is your problem. |
Forum: Java 6 Days Ago |
| Replies: 2 Views: 144 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. |
Forum: Java 8 Days Ago |
| Replies: 4 Views: 184 Please post the exact and complete message. |
Forum: Java 8 Days Ago |
| Replies: 1 Views: 171 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. |
Forum: Java 9 Days Ago |
| Replies: 3 Views: 248 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... |
Forum: Java 10 Days Ago |
| Replies: 10 Views: 340 Well, that's a different exception, isn't it? What does the one have anything to do with the other?
You need to print more than just the message so that you actually know what is going on. I.E.... |
Forum: Java 10 Days Ago |
| Replies: 3 Views: 266 Nope. The real problem is that that code needs to be inside a method. You can't simply code loops and other actions as part of the class definition, but rather as method/constructor/block... |
Forum: Java 11 Days Ago |
| Replies: 5 Views: 227 Well, sorry to say, JOGL is not part of the JDK itself, so Mac is not required to implement/support it. That is not a satisfying answer, but true.
Edit: BTW, All systems you know of, or you... |
Forum: Java 11 Days Ago |
| Replies: 4 Views: 267 See http://java.sun.com/docs/books/tutorial/deployment/applet/appletMethods.html
You are missing the methods that actually count for anything. You want to move most of the stuff in your... |
Forum: Java 11 Days Ago |
| Replies: 5 Views: 210 Then you seemingly missed the "support request" link on the next page, duh!
Stop making things up, either that or actually open your eyes when you look at the web sites. |
Forum: Java 11 Days Ago |
| Replies: 2 Views: 170 If you want to "split up" the initialisation, place the actual processes into private methods and call those methods from the constructors, rather than coding it directly into the constructors.
... |
Forum: Java 12 Days Ago |
| Replies: 5 Views: 227 Does Mac have/use OpenGL? |
Forum: Java 12 Days Ago |
| Replies: 9 Views: 266 |
Forum: Java 12 Days Ago |
| Replies: 26 Views: 703 This is exactly what the API docs tell you. Did you even bother to look? No? You'd rather spend days begging at a forum for someone to do it for you than to take two minutes to RTFM and do it... |
Forum: Java 12 Days Ago |
| Replies: 5 Views: 210 :sigh: Take a look at the left-hand side of the "drjava" page. Do you see the bold heading "Feedback"? What is directly under it? You see that? It is the word "support". OMG, It's a link! ... |
Forum: Java 12 Days Ago |
| Replies: 3 Views: 170 Do not use == to compare Strings. Use Strings "equals" method.
if ("2".equals(theparam)) {
The "2" is done first as this will avoid any possible NullPointerException. |
Forum: Java 12 Days Ago |
| Replies: 9 Views: 266 I've given up. The OP hasn't even asked a question, yet. And, considering the line numbers in one of the above posts, seems to be copying the code from elsewhere on this forum, so I see no point in... |
Forum: Java 12 Days Ago |
| Replies: 3 Views: 170 The code might help.
However, marking your post as "URGENT" is extremely rude. Suggesting that your problem is more important than anyone elses and more important than anything we, ourselves,... |
Forum: Java 13 Days Ago |
| Replies: 26 Views: 703 Uhm, no. It can, and should be updated to use the "current" procedure, not to mention other javac options (which I already mentioned earlier). |