458 Posted Topics
Re: As you have posted this in the Java Forum I assume your questions relates to the Java Language. Well talking about functions and methods: Functions are a block of code that are perform a specific task and return a value. These help in modularizing code into logical pieces. They also … | |
Re: [QUOTE]Are you actually asking us what you should include on your resume to fake one years experience in Java? [/QUOTE] I guess, yes she is. [QUOTE]i now have to show 1 year experience in java ,j2ee but can u please help me as too wht should i show in this … | |
Re: [QUOTE]plz help me to complete this program if any of you know how to do it[/QUOTE] We would not complete the program for you irrelevant of the fact whether we know it or not and as VD has said tell us what point in the program your stuck at, ask … | |
Re: Using the same socket wouldn't your chat and file data get interpersed with the application having no way to know whats what ? | |
Re: To expand what JamesCherill says in one line, The Java Compiler would add a default constructor if you haven't defined it and if you haven't defined a parameterised constructor either. But the moment you declare and define a parameterised constructor (and then don't define a default constructor) Java assumes that … | |
Re: [QUOTE]Result 1: Student/User asks for help, another Student gives help then a Vet comes in and provides a better solution that the original poster doesn't understand because it contains much more information than what the OP originally asked for.[/QUOTE] Thats called giving an insight into the stuff, which however useless … | |
Re: [QUOTE]Also lots of threads start with a log/error message/link instead so any sort of filter wont work well. [/QUOTE] Why do you think that a log/error message won't make it past the filter ? OR are you thinking that they are themselves written in so bad a langauge/ grammar ? … | |
Re: I am quite late to react on this but better late than never. Okay I must admit I haven't liked all of the changes that have been brought up in the recent days. Barring a few like the new homepage which is customised for everyone and brings forums/threads that the … | |
Re: See [URL="http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.html"]here[/URL]. | |
Re: @ClimaxBeetle: I appreciate your use of code tags in the very first post. But you haven't mentioned what your problem is, tell us why you have stuck. | |
Re: >Store them into an array I would like to suggest just a better way. Use a Map instead it would also give you better search capabilities than an array. Instead of searching of all the strings in the array, a Map would offer you search functions. Store the Id as … | |
Re: Dani, I guess s.o.s was pointing to the post by MidiMagic when he used '>', I don't think he was talking about '>' appearing in HTML code. | |
Re: The [icode]hasNext()[/icode] method blocks waiting for user input, so the scanner always [I]has[/I] a token to show up in [I]hasNext[/I] and the while loop never actually terminates. These are the lines from the Scanner docs: [icode]The next() and hasNext() methods and their primitive-type companion methods (such as nextInt() and hasNextInt()) … | |
Re: make up your mind. | |
Re: The notice shows two warnings, and not errors as such. One, that your PHP Mysql library version is an older version than that used by MySQL server. For this I suggest that you copy the libmysql.dll file in the MySQL bin directory into the PHP directory. The bin directory of … | |
Re: [QUOTE]you are insisting that the incident was racially based? I didn't see that in the article, so you might be jumping to conclusions there[/QUOTE] My sister emailed this to me, she is a doctoral student studying psychology, and this incident was raised in her class which focuses on: “The psychology … | |
Re: [QUOTE]C'mon, help a brother out, here.[/QUOTE] The brother isn't exactly sharing the problem with his brethren. So they are incapable to help him. | |
Re: Use a two dimensional array with 10 positions in the first dimension to hold the base values and 100 positions in each of the 10 base positions. The base values will then act as handles to the 100 positions based at that base position. | |
Re: How do you enter the MySQL shell/monitor ? If you type just mysql and fire the command it will assume the default settings in the my.cnf (GNU Linux)/ my.ini (Windows) configuration file. If there's something different that you are doing then specify it. | |
Re: To put some more light onto this: What James and sillyboy are mentioning that when you say new Track();, the compiler looks for a [I]default[/I] constructor, which means constructor with no parameters. But if you check your code you haven't defined any such constructor. The only constructor you [I]have[/I] defined … | |
Re: Firstly a combo box would allow you to choose one of several choices so putting check boxes inside it which themselves are used as multiple select components would not be a good option. You could use a list box instead which itself will give you the option of selecting several … | |
Re: Try creating the menu and sub menus first, so that they correctly reflect what the description specifies. Once you have done this you could later on move to the calculation and output part. Use the [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html"]Scanner[/URL] class to take user input. | |
Re: There are two while loops in your program and both are looking fine to me. Trace through your program putting debugging statements and check the values for i and digits. | |
Re: Instead of taking the lengthy route of a backup through a script, you could just as well use the 'SELECT...INTO OUTFILE' query to backup the data to a CSV file. You could put this command into a file and then use the crontab to run this daily. This would be … | |
Re: You have the program, you have the set of input over which to test I wonder what stops you from running the program, feeding it the input and then checking whether the output you predicted was right or wrong. | |
Re: As comatose mentions, new members posting a question on an old thread isn't expected to get an answer anyways, he is supposed to be smart enough to check the dates and start a new thread. Also from the conversation on [URL="http://www.daniweb.com/forums/thread181085.html"]this[/URL] thread (which I witnessed two days back too), old … | |
Re: Being in an IT solutions firm, I have seen a lot of so called computer engineers with near to no understanding of programming and what it is all about, whatsoever. I always used to get so amazed knowing this, thinking how somebody who has been trained in that particular subject … | |
Re: If you want to replace all the occurrences of the word take a look at the [icode]replaceAll[/icode] method, else if you would just want to replace the first occurrence of it, use the [icode]replaceFirst[/icode] method. If you still want to do something else, such as replace an occurrence of the … | |
Re: Read [URL="http://www.daniweb.com/forums/thread182326.html"]this[/URL] thread. | |
| |
Re: You are good at describing something. Now show us how good you are at coding. | |
| |
Re: @VernonDozier : I appreciate the way you gave a +rep to someone who used code tags right from the first post, because thats really something rare to see. He deserved nothing short of it. @madden88chw: There are some problems in your code here : [code=java] while (!date.equals("#")) { for (charCount … | |
Re: Java uses Unicode for internal character representation which is 2 bytes or 16 bit wide. So basically each character uses 2 bytes of memory. | |
Re: There is a code snippet in the java category producing a sierpinski triangle. Look at it if it provides any help. | |
Re: > few different ways And what were they ? >how you would incorporate a main method into this program? By writing: [code=java] public static void main(String [] args) [/code] | |
Re: Before performing any calculations on the value from the text field just check using a regex whether every character in the text field is either a digit or a period (.) character. You could form the regex so that you can restrict the number of digits before and after the … | |
Re: [QUOTE=xgmx;828278]Please disregard this topic.[/QUOTE] Did you have to say this ? It was disregarded anyways when for three years nobody gave a damn. | |
Re: Maybe the people cheated to pay their taxes, so with scarce funds maybe the govt. sponsored his education in parts so it took 9 years to get it done. Why are people here so non-understanding. | |
Re: [icode]replaceFirst[/icode] uses a regex, so you could form a regex such as 0+ which means one or more occurrences of zeroes and then have them replaced by "". | |
Re: I don't think you should try to shorten this code. For the reason that a for loop might not be able to "exhibit" what exactly you are trying to achieve in the code which would make the code unreadable or atleast difficult to understand. One of the many virtues of … | |
Re: [code=java] if ( variable == s[0] ) variable = "some_value0"; else if ( variable == s[1] ) variable = "some_value1"; else if ( variable == s[2] ) variable = "some_value2"; else if ( variable == s[3] ) variable = "some_value3"; [/code] I can't seem to figure out what you are … | |
Re: I remember you creating a thread similar to this asking for the same thing. Where you were given [URL="http://scorreiait.wordpress.com/2007/09/25/how-to-find-the-free-disk-space-in-java/"]this[/URL] link. Now what has happened according to me is that, you did not mention the version of JDK that you were using in that thread and the link shows you how … | |
Re: We are not here to give you the solution. We are here to help you find the solution if you show initial effort. Where's the effort ? Tells us what have you searched on the net about threads in Linux/Windows. What you are only putting effort in is writing useless … | |
Re: A GUI project/application/program is one where you present a Graphical User Interface such as a Window or form with buttons, textboxes, labels, images etc., where the user communicates with the system with the help of graphical components such as the press of a button, writing of text in text box, … | |
Re: I may not be able to answer this question eventually but could guide the first few steps. Well, you don't need to convert the array strings to 1s and 0s and then the 1s and 0s to analog signals that flow in wires all you have to do is throw … | |
Re: More approrpiately what you could do here is read the entire line just like what you are doing here and then split the line based on the space character. So you get all the tokens in the first line in an array. The name is the first element of the … | |
Re: Some [I]natural[/I] intelligence would come in quite handy here if it could take you to [URL="www.google.com"]www.google.com[/URL] won't it ? | |
Re: Figure out what [icode]myGrid.length[/icode] is then figure out how arrays work so that you get what [icode]total += myGrid[count][i][/icode] and [icode]total += myGrid[i][count][/icode] does. Take a paper and a pencil and start substituting the values you won't be far from concluding what values you get. Once you start getting values … | |
Re: Why can't you continue doing it ? As far as I am seeing you are going good. Just one thing, if you know you are going to put only even numbbers in the array from amongst 50 numbers, instead of declaring the array as [code=java] int L[]=new int[50]; [/code] you … |
The End.