458 Posted Topics

Member Avatar for get2tk

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 …

Member Avatar for JamesCherrill
0
298
Member Avatar for neha_p
Re: JAVA

[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 …

Member Avatar for verruckt24
0
98
Member Avatar for karan_the

[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 …

Member Avatar for javaAddict
0
176
Member Avatar for neutralfox

Using the same socket wouldn't your chat and file data get interpersed with the application having no way to know whats what ?

Member Avatar for neutralfox
0
174
Member Avatar for Prateek Parmar

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 …

Member Avatar for verruckt24
0
92
Member Avatar for Intrade

[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 …

Member Avatar for MidiMagic
0
221
Member Avatar for MosaicFuneral

[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 ? …

Member Avatar for MidiMagic
0
256
Member Avatar for lllllIllIlllI

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 …

Member Avatar for verruckt24
0
179
Member Avatar for llemes4011

See [URL="http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.html"]here[/URL].

Member Avatar for llemes4011
0
99
Member Avatar for ClimaxBeetle

@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.

Member Avatar for BestJewSinceJC
1
136
Member Avatar for rayda

>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 …

Member Avatar for verruckt24
0
87
Member Avatar for Narue

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.

Member Avatar for WaltP
0
349
Member Avatar for ippomarley

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()) …

Member Avatar for verruckt24
0
112
Member Avatar for bond124
Member Avatar for etc123

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 …

Member Avatar for nav33n
0
140
Member Avatar for GrimJack

[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 …

Member Avatar for GrimJack
1
148
Member Avatar for Donny 619

[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.

Member Avatar for verruckt24
0
136
Member Avatar for orangejuice2005

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.

Member Avatar for orangejuice2005
0
117
Member Avatar for andrewsCWD

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.

Member Avatar for verruckt24
0
103
Member Avatar for ice_cool

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 …

Member Avatar for verruckt24
0
189
Member Avatar for SSagar

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 …

Member Avatar for Ezzaral
0
493
Member Avatar for weinyeong

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.

Member Avatar for stultuske
0
122
Member Avatar for SQ89

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.

Member Avatar for verruckt24
0
2K
Member Avatar for rajeesh_rsn

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 …

Member Avatar for verruckt24
0
98
Member Avatar for Asmodaii

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.

Member Avatar for Asmodaii
0
107
Member Avatar for MosaicFuneral

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 …

Member Avatar for verruckt24
1
216
Member Avatar for freaky.pandit

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 …

Member Avatar for verruckt24
-1
129
Member Avatar for m_sam6

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 …

Member Avatar for m_sam6
0
94
Member Avatar for denniskhor
Member Avatar for verruckt24
0
95
Member Avatar for admiralxgmx
Member Avatar for danibarry

You are good at describing something. Now show us how good you are at coding.

Member Avatar for quuba
0
146
Member Avatar for senthil12345
Member Avatar for madden88chw

@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 …

Member Avatar for verruckt24
1
158
Member Avatar for qinazaza

Java uses Unicode for internal character representation which is 2 bytes or 16 bit wide. So basically each character uses 2 bytes of memory.

Member Avatar for verruckt24
0
108
Member Avatar for smoore

There is a code snippet in the java category producing a sierpinski triangle. Look at it if it provides any help.

Member Avatar for verruckt24
0
1K
Member Avatar for jackiejoe

> 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]

Member Avatar for BestJewSinceJC
0
295
Member Avatar for luke42

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 …

Member Avatar for jasimp
0
204
Member Avatar for xgmx

[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.

Member Avatar for Ezzaral
-1
264
Member Avatar for serkan sendur

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.

Member Avatar for serkan sendur
0
178
Member Avatar for av11453

[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 "".

Member Avatar for verruckt24
0
152
Member Avatar for T'Scoopz

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 …

Member Avatar for masijade
0
104
Member Avatar for T'Scoopz

[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 …

Member Avatar for BestJewSinceJC
0
130
Member Avatar for senthil12345

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 …

Member Avatar for verruckt24
0
100
Member Avatar for bahr_alhalak

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 …

Member Avatar for verruckt24
-3
194
Member Avatar for Nrod520

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, …

Member Avatar for verruckt24
0
115
Member Avatar for get2tk

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 …

Member Avatar for verruckt24
0
184
Member Avatar for EJD

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 …

Member Avatar for verruckt24
0
581
Member Avatar for its.romi

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 ?

Member Avatar for ithelp
0
137
Member Avatar for TheJackRabbit

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 …

Member Avatar for verruckt24
0
88
Member Avatar for Tizzie

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 …

Member Avatar for stultuske
0
151

The End.