-
Replied To a Post in Serialization Realtime example
You use it whenever you want to send an instance of a class to another system (eg server to client) -
Began Watching Goto statements: When are they useful?
When we're taught programming (at least me, anyway), we're always told that goto statements are to be avoided at all costs. If they make code so difficult to read when … -
Replied To a Post in Goto statements: When are they useful?
It dates back to 1968 when Dijstraka published his famous ["Goto considered harmful"](http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD215.PDF) letter in the Communications of the ACM. Until then goto was considered a normal essential part of … -
Replied To a Post in HI I NEED HELP TO WRITE THIS
There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in … -
Replied To a Post in Image Processing
There are lots of people here who will freely give their time to help you become the best Java programmer you can be. There's nobody here who is interested in … -
Replied To a Post in Which class/library used to detect hardware through java
I think you best option is to use ProcessBuilder to run an external command or app that writes all that info to a file or output stream, from where you … -
Replied To a Post in Help needed, prompt dialog urgent advice.
[This Oracle tutorial](http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html) tells you how to create a dialog that prompts the user and gets the user's input. -
Gave Reputation to PerpyProgrammer in How would you go about a guidance system?
@happygeek May you please stop? -
Replied To a Post in library management
DaniWeb Member Rules (which you agreed to when you signed up) include: "Do provide evidence of having done some work yourself if posting questions from school or work assignments" http://www.daniweb.com/community/rules -
Replied To a Post in A little help?
Jack_11 is just some kid who has been wasting our time. ps: Using the same IP address was bit of as give-away. -
Replied To a Post in A little help?
"Lol. The code works." You are demented. Almost every other line contains an error. It a long way from even compiling. -
Replied To a Post in Face Detection
If this is you final year project then aren't you supposed to write it youself? -
Replied To a Post in Do I have some sort of programming talent?
If the nonsense code you posted [here](https://www.daniweb.com/software-development/java/threads/490436/a-little-help#post2145339) is yours then, to answer your original question,... no, you displayed no special talent whatsoever. You code Java like a complete beginner with … -
Replied To a Post in Java db connection (not connecting)
Then you need those numbers (IP address?) in your getConnection call, not just "host" -
Replied To a Post in Java db connection (not connecting)
"jdbc:mysql://host:3306/dbname" is the server really called "host"? -
Gave Reputation to CoderGuy101 in JAVA -RECTANGLE PROGRAM
Here's a way to output the rectangle.... You could write a method that outputs the arrays using a loop. -
Replied To a Post in Can't get debugger to work
With focus in the Netbeans editor window showing your main class, CtrlF5 (cmd/shift/F5 on OSX) shoud bring up the Output window with 2 tabs (the normal system output window + … -
Replied To a Post in What would be the most logical and efficient approach
Separate the model from the view... Start with a CookingTimer class that implements all the required functionality as public methods (no user interface of any kind). Test/debug it by hard-coding … -
Replied To a Post in Help with assignment
Yes. A do-while will execute the processing for the last (zero) entry, which is what the spec requires. -
Replied To a Post in Do I have some sort of programming talent?
Admins and Mods have access to your IP address. It's time to end this bull and move onto something productive. -
Replied To a Post in Help with assignment
> The number 0 is included in the sequence of integers and should be included in all of your calculations. You stop looping as soon as you see the 0, … -
Replied To a Post in Do I have some sort of programming talent?
MIT offered me a scholarship as soon as they heard my my mother was pregnant, but I was too busy correcting Einstein's mistakes in General Relativity to take it up. … -
Replied To a Post in Do I have some sort of programming talent?
"And of course I know APIs! " Of course you do, all of them, 100%. Well. you really had us all fooled for a while there. Anyway, I'm going back … -
Replied To a Post in Do I have some sort of programming talent?
Remember also that the programming language is by far the smallest and easiest thing a Programmer has to learn. Much larger is the API (.net, Java SE API etc) withoiut … -
Replied To a Post in Need help finishing up this code
Hi Cripop It's good that you have already done so much, and posted yur progress so far. What's missing is a clear and concise statement of exactly what help you … -
Replied To a Post in How the parser knows if the expression in for statement returns boolean
Java is strongly typed, which means the compiler can work out the type of an expression. See the Java Language Spec section 15.1 for details. (or are you asking how … -
Replied To a Post in help me to write the following java program
"if some body been given a question and has no idea he cant be help" We help people who show effort. You have been given a detailed step-by-step set of … -
Replied To a Post in Just want a little feedback
Yes, sorry. We did hijack your thread for a side discussion about & and &&. That was a bit naughty of us. Anyway, I'm really glad that you got it … -
Replied To a Post in FTP client/server application
2 days is your problem, nobody else's. You are clearly expected to do your own homework, so don't expect anyone to do it for you. As I said before, if … -
Replied To a Post in FTP client/server application
In that case, rather than rely on someone else's code that you don't understand, you will benefit more by doing it yourself. Start by studying [Oracle's excellent JTree tutorial](http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html), especially … -
Replied To a Post in FTP client/server application
I'm sorry but I don't have that kind of time. It's your code, and you have to write it. If you get stuck on specific problems, then feel free to … -
Replied To a Post in Just want a little feedback
" If a question can be framed at all, it is also possible to answer it. ~ *Ludwig Wittgenstein*" Didn't Godel disprove that? -
Replied To a Post in FTP client/server application
That code should load the local file system, given a File (line 7) that specifies a file system root. I'm not sure that FileSystemModel will help you a lot here, … -
Replied To a Post in FTP client/server application
Let's break the problem down. Trying to write & test everything in one go is just too hard. Start by trying to load the local file system into a JTree. -
Replied To a Post in FTP client/server application
That needs quite a lot of code covering more than one major area of the JAva API. What have you done so far? -
Replied To a Post in Places to learn gui java
It's an interesting question as to whether a beginner should learn JavaFX or Swing. JavaFX is billed as the future of Java GUIs, but it's only been a standard part … -
Replied To a Post in Generate Random Number
Sorry, but that does not meet the requirement of "without using library function", so it's no good. You need to Google for random number generator algorithms, and implement one of … -
Replied To a Post in Do I have some sort of programming talent?
Either you have a truely exceptional ability or you don't really understand what it means learn or know a language. Maybe if you post some examples of your best code … -
Replied To a Post in Generate Random Number
OK, that's an example of code that DOES use the API Random class (although in a rather bizarre way). I thought you wanted a solution that does NOT use a … -
Replied To a Post in Just want a little feedback
I have to disagree with Traevel about && vs & Firstly: The JLS 15.23 says: "&& computes the same result as & on boolean operands. It differs only in that … -
Replied To a Post in Places to learn gui java
I would also avoid that tutorial site. Seems to have been written by someone whith limited knowledge and no experience of Java. Eg One almost the first page I looked … -
Replied To a Post in Generate Random Number
<Sigh> I'm sure you know this by now but... Do provide evidence of having done some work yourself if posting questions from school or work assignments (DaniWeb Member Rules) -
Replied To a Post in Just want a little feedback
20 differ = annualSales, What is this intended to do? annualSales wasn't initialised explicitly, so differ will just be a copy of its default value of 0 if (n < … -
Replied To a Post in Need help with my project plz urgent
If uyou have multiple public classes (as is normally the case) then you must have multiple .java source files. You could put them all in a single .zip file. -
Replied To a Post in convert array of type short to array of bytes
Use bitwize shift right 8 to leave just the first 8 bits, and put those in a byte Use bitwize AND to mask just the last 8 bits, and put … -
Replied To a Post in Java - java.lang.NullPointerException
I would take a few minutes to print out ALL the variables after the server & client have been initialised. My guess is that you will find something that does … -
Replied To a Post in Java - java.lang.NullPointerException
encrypted = encryptCipher.doFinal(plainText); Then `encryptCipher` must be null. Seems you failed to initialise it? -
Replied To a Post in Java - java.lang.NullPointerException
Line 93 is a comment, so the code you posted does not correspond to the exception. Which line causes the NPE? -
Replied To a Post in convert array of type short to array of bytes
Obviously you can use bitwize operations to separate out the two bytes of each short and store them into consecutive elements of a byte array (and vice-versa), but does anyone … -
Edited new runescape private server
hi I'am making a new runescape private server I need help by a good coder knows about rsps to help me coding it
The End.