3,927 Posted Topics
Re: >Plz give solution as soon as possible. Good info [here](http://www.catb.org/~esr/faqs/smart-questions.html#urgent) and [here](http://www.informit.com/articles/article.aspx?p=1592963&seqNum=3) | |
Re: All of the above suggestions are valid and using a [URL="http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html"]regex pattern[/URL] is another option. Regex will allow a pretty complex input string to be validated rather simply. | |
Re: Created a BufferedImage of the desired dimensions, create a graphics context for it with createGraphics(), and pass that to your rendering method or paint() method. Use the ImageIO.write() method to write that out to a file. | |
Re: > jdk 1.4 and tomcat 4 Firstly, install components that are not 10 years old. There is no reason to be using 1.4 and Tomcat 4. Regarding your question, you could build your map by checking for the key before you put the value and if it exists, concatenate the … | |
Re: It really shouldn't be any different from other collisions. Once you know the collision occurred, you just change the state of the colliding object to whatever result you intend. That may involve adjusting its velocity and position. | |
Re: Use [OpenCSV](http://opencsv.sourceforge.net/). You can use tabs delimiters with a CsvReader and a CsvWriter for the output. Use regex to split "rdy 784 bsy 16". | |
Re: Er... yeah, arinborn. A poorly-quoted except from a "discussion" unknown to most surely best addresses the point. Perhaps supplying a bit of context would clarify your point? As it stands, it's absolute nonsense - though I'd wager that par for most threads on this topic. | |
Re: The DecimalFormat class will allow you to specify a format string to control such things. Look it up in the API. The String.format() and PrintStream.printf() functions also allow such formatting. | |
Re: Yes, as JorgeM mentioned, try clearing your cache. I saw the kitten until I hit Ctrl-F5 in Firefox to clear the cache and reload. | |
Re: As long as the two frames have references to one another, you can easily interact between the two. Another idea may be to use a non-visual controller that can act as a mediator between the two frames and synchronize interactions and state changes as needed. | |
Re: In Java, you can use the [JOGL bindings](http://jogamp.org/jogl/www/) for OpenGL. There are some basic tutorials on their project site and then you can move on to the [NeHe OpenGL tutorials](http://nehe.gamedev.net/). The [OpenGL red book](http://www.glprogramming.com/red/) is a good reference to keep handy. The JOGL bindings are just wrappers around the OpenGL … | |
Re: Use a counter variable or a for loop. Any further questions should go in a new thread of your own. Don't hijack old threads to ask new questions. | |
Re: If you need help then start a new thread and post [U]specific[/U] questions you are having trouble with. | |
Re: The read loop starts on line 20: `while(file.hasNext()){` That loop is where you'd perform any operations you want to do with each entry. | |
Re: Did you check the [URL="http://download.oracle.com/javase/6/docs/api/"]API[/URL]? | |
Re: > Is it really annoying? Yes. It is. > Does it make the ads more noticeable? If by 'noticeable', you mean 'more noticeably annoying', then yes, it does. | |
Re: No one is going to answer your quiz for you. Try Google or read your class notes. | |
Re: Do not make multiple threads for a single question. Closing this one. Please continue working through the original thread. | |
Re: Closing this thread as it is in breach of the DaniWeb rule (http://www.daniweb.com/community/rules) that states you must show "evidence of having done some work yourself if posting questions from assignments". What this means, for future reference, is that we expect you to have put some effort into solving the problem … | |
Re: Based on the minimal information that you provided, I guess you can start here: [url]http://download.oracle.com/javase/tutorial/2d/index.html[/url] | |
Re: Obviously these aren't priorities, just general observations: "Show Comments" link is visible when there aren't actually any comments. "Show Comments" is still displayed when comments are showing. Perhaps it should change to "Hide Comments" to reflect its functionality if clicked again. | |
Re: > and no this question is not Homework what so ever How do you expect anyone to buy that when you are obviously in a Java class currently? Show some effort and at least make a start on it or ask specific questions about what you are confused about. | |
Re: The API doc on ResultSet says getRow() is optionally supported on forward-only result sets. Sounds like your JDBC driver opted to not support it. Try creating your statement to be scrollable Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); | |
Re: How much code gets executed after a return statement? | |
Re: The error is pretty clear. You don't have a main method defined in that class, so you cannot run it directly. | |
Re: If the class StackX is not in the same directory as this file, you will need to import the StackX class to reference it. | |
Re: Seems like your friend who said it could easily be done in a few lines of code would be the best place to start. | |
Re: What about ditching the alternating line highlight? It seems to make it less readable rather than more. Such highlight is helpful for tabular reports - not so much for code. | |
Re: The general gist of it would go as follows: You already (should) know the coord of the center of the cue ball. While the mouse is pressed, your mouse point becomes the endpoint of a line to the cue and is easily updated in mouseDragged(). The length of that line, … | |
Re: Are you running a 64-bit JVM trying to connect to a 32-bit Access installation? | |
Re: Your class needs a main() method defined if you are going to run it directly. public static void main(String[] args){ ... } | |
Re: syed, Helping is one thing. Asking others to just give you the code is something else entirely. You don't seem to be putting any effort into this. Even the original piece of code you posted was copied from elsewhere. Students are expected to make an effort if they wish to … | |
Re: You are dividing by the length of the grades array, but not all of those elements have a value. You need to divide by the actual number of entries the user has added. | |
Re: So everyone is supposed to know what some obscure "MARIE" simulator is? As bibki pointed out, you're in the Java forum - which MARIE is not. "Written in Java" != Java. No need to be a jerk when you are the one posting in the wrong forum about some simulator … | |
Re: Is there a reason not to just use [URL="http://docs.oracle.com/javase/tutorial/uiswing/components/internalframe.html"]JInternalFrames[/URL] for this? It seems that is what you're trying to mimic. | |
Re: Some of your variables will only be initialized if conditions are met. The compiler requires that they be initialized under all conditions. If you declare them to have an initial value, the compiler will be satisfied[code]String ch2="";[/code] Edit: cross-posted with above. | |
Re: Ask specific questions. | |
Re: The infographic looks like useless promotional propaganda to me. Only half of it's visible and I see no source cited. Are you at all affiliated with that facebook group? | |
Re: Merged three threads for the same question. Please do not post the same question multiple times. | |
Re: Mentioning ASP in your first post or posting it in the correct forum would have been more helpful in getting an answer. Are you using classic ASP or ASP.NET? | |
| |
| |
Re: Jesus, just pick one already. You have an entire list and you're waiting for people on the internet to tell you what to do? Seriously? | |
Re: What more are you expecting? Yes, it's a scam. No, they are not from DaniWeb. Case closed. You don't even have other threads posted here, so referencing your posting history makes little sense. | |
Re: Agreed. Let's keep further discussion in a single thread: [url]http://www.daniweb.com/software-development/java/threads/411255[/url] Closing this one. | |
Re: That is a random hijack. Report them as bad posts so they can be split to new threads (which I did on that one you linked above). ![]() |
The End.