2,443 Posted Topics

Member Avatar for chmo

Yeah, actually learn the language (there are plenty of tutorials and API docs) rather than simply copying random blocks of code. Why don't you tell us what you think that code is doing (line for line), see the [url=http://download.oracle.com/javase/6/docs/api/]API docs[/url] for help. At least that way you will have to …

Member Avatar for masijade
0
544
Member Avatar for chmo

Essentially crossposts [url=http://www.java-forums.org/new-java/34383-question-about-adding-using-arraylist-using-terminal.html]Number 1[/url] [url=http://www.daniweb.com/forums/post1375354.html#post1375354]Number 2[/url] [url=http://www.daniweb.com/forums/thread322926.html]Number 3[/url] [url=http://www.daniweb.com/forums/thread322572.html]Number 4[/url]

Member Avatar for masijade
0
378
Member Avatar for ajay_tabbu

[QUOTE=B.A.A]Hii all please i want the answer for this Question for JAVA program:") [B] ** How to write a java program to read the value of salary (double). if the salary is above 5000,calculate the bonus as 20% of salary.otherwise, calculate the bonus as 10% of salary ???[/B] > > …

Member Avatar for masijade
0
206
Member Avatar for etrac1912

See the API docs for DecimalFormat. Per default it will only print as many decimal places as need to display the value, which it is doing there.

Member Avatar for Eric Cute
0
96
Member Avatar for yap_1991

See the File class for a method to get the names of the files in a directory as an array, then use the removeAllItems of the ComboBox and the addItem method of JComboBox in a loop, then validate/repaint the JComboBox.

Member Avatar for masijade
0
1K
Member Avatar for Krimi
Member Avatar for sonakrish

long Edit: As if the API docs for Thread couldn't have told you that, or what that number represents.

Member Avatar for masijade
0
122
Member Avatar for alice06
Member Avatar for masijade
0
72
Member Avatar for anupam.j2ee
Member Avatar for ITmajor
Member Avatar for amitbhanot

Classpath, classpath, classpath. Include the jars that contain those packages on your classpath with the -cp option when using javac or added as a library in your project.

Member Avatar for amitbhanot
0
112
Member Avatar for saisakthi

[QUOTE=saisakthi]I need to use this in scriplet.[/QUOTE] No you don't, you shouldn't be using scriptlets [i]in the first place[/i].

Member Avatar for javaAddict
0
891
Member Avatar for alastair1008

Lets see yours, and we'll help you fix it, otherwise see [url=http://download.oracle.com/javase/tutorial/essential/concurrency/index.html]this[/url].

Member Avatar for Taywin
0
138
Member Avatar for Butterflieq

Because that check in the while loop takes much less than a single millisecond to execute, so, "subtracting a millisecond" is every iteration is, of course, faster than "realtime". Simply keep checking the currentTime against the "startTime", and set the "startTime" to the currentTime as soon as it is at …

Member Avatar for masijade
0
149
Member Avatar for premashis

No idea what you're [i]really[/i] talking about, but this seems more of a JavaScript/HTML question (i.e. how to write it properly) than a JSP question (since the actual action seems to work, according to your statement, but that you cannot get the HTML/JavaScript the way you want it).

Member Avatar for masijade
0
56
Member Avatar for Puster

If you are [i]actually[/i] talking about JSP, then [i]that[/i] is an HTML question, as the HTML produced by the JSP is what will control that.

Member Avatar for masijade
0
38
Member Avatar for alastair1008
Member Avatar for novice20

Well, it [i]might[/i] help to know what error you're getting, and [i]what[/i] exactly you are trying and what you are trying it with.

Member Avatar for vaibhav1983
0
72
Member Avatar for subrat_p

Creating a new table is completely contradictory to the purpose of a relational db. As far as doing it, if you insist and we all know you will, and will come up with all sorts of reasons as to why it [i]has[/i] to be that way, you use a Statement …

Member Avatar for subrat_p
0
215
Member Avatar for nikhilrkn

We are not a free pool of slaves. We will help you correct what you have but we will not do it for you.

Member Avatar for nikhilrkn
0
101
Member Avatar for priyankayou

Why should we do your work, and/or your research, for you? This is [i]your[/i] project so [i]do[/i] it. Gods I am [i]really[/i] getting sick and tired of the feel of entitlement kids have these days (I know, we all [i]had[/i] it, but it just seems [i]so[/i] much worse than it …

Member Avatar for masijade
0
77
Member Avatar for hassin
Member Avatar for Dean_Grobler

[url=http://download.oracle.com/javase/tutorial/essential/io/charstreams.html]BufferedReader, while, readLine[/url], split, new Contact

Member Avatar for Dean_Grobler
0
179
Member Avatar for ADIKTED

[QUOTE=ADIKTED]how can i create a application that will compute fot the net income of a particular employee[/QUOTE] By typing in a text editor. We are [i]not[/i] a homework service.

Member Avatar for Eric Cute
0
93
Member Avatar for eman 22

By reading the [url=http://download.oracle.com/javase/tutorial/jdbc/index.html]tutorials[/url].

Member Avatar for Ezzaral
0
95
Member Avatar for outbackandy

Looking at your string I assume that the different parts of the string are seperate4d by a TAB character. If so do the following: [code] String line = "BATHROOM TOI 48157 Y DOVE BWASH MCDAMIA 375ML 6 NEW" ; String[] parts = line.split("\\t"); //parts[0] = "BATHROOM TOI"; //parts[1] = "48157"; …

Member Avatar for masijade
0
172
Member Avatar for jliao20

If the method in which the exception may occur is capable of handling that exception, then you catch it, otherwise you throw it.

Member Avatar for masijade
0
57
Member Avatar for sciprog1

What "border lines". And, if you have a "scrollbar", then you should probably be attempting to change the border on the JScrollPane. And try setting the border to an "EmptyBorder" and not null.

Member Avatar for masijade
0
74
Member Avatar for Lxyslckr

If "year" is the value to check then that, of course, is the value you need to use in the if statement. In any case, the second version is the one to use, as long as you are checking the right value and actually check for 2012, not 2010.

Member Avatar for Lxyslckr
0
104
Member Avatar for manaila
Member Avatar for Shanki87
0
139
Member Avatar for joss23

[code]String[] strings = { "a", "b" };[/code] Then see the API docs for Scanner (as this seems to be the preferred method for most instructors, although it is [i]not[/i] my personal choice) and Integer.parseInt(String) (although with Scanner this part is not necessary). [code]System.out.println(strings[index]);[/code]

Member Avatar for joss23
0
108
Member Avatar for unikshegz
Member Avatar for unikshegz
0
135
Member Avatar for gunjannigam

Read the MySQL manual. The user administration portion. Pay close attention to the portion about Grants.

Member Avatar for gunjannigam
0
2K
Member Avatar for Dean_Grobler

Well, what is your idea of a "fair amount of code"? Why don't you show us what it is you've tried?

Member Avatar for masijade
0
132
Member Avatar for Chalandria
Member Avatar for hateme_devon

Why should I help either pirate someone elses stuff (although with an applet, if you know [i]anything[/i] about them, you can get the compiled code easily enough) or help you cheat on some assignment?

Member Avatar for masijade
0
250
Member Avatar for cassandracritch

Of course we can, but the question is, can you? It is your job and/or homework, so do it. If you have problems, then post your code and your complete error message, and we will help [i]you[/i] solve it. If you are looking to contract someone to do something, there …

Member Avatar for nihal_kiss
0
80
Member Avatar for Dean_Grobler
Member Avatar for Sunshineserene

This seems to be a real ongoing thing and I doubt it will ever be resolved without hands-on help. [url]http://www.daniweb.com/forums/thread314127.html[/url] [url]http://www.daniweb.com/forums/thread316336.html[/url] [url]http://www.daniweb.com/forums/thread315633.html[/url] [url]http://www.daniweb.com/forums/thread306626.html[/url] [url]http://www.daniweb.com/forums/thread304095.html[/url]

Member Avatar for Sunshineserene
0
2K
Member Avatar for samehere
Member Avatar for guru_tech

Wow, a [i]whole [b]5[/b] years[/i] in [i]all[/i] of that? Didn't leave a whole lot of time to specialise in anything, did it? You really think you're qualified to train people? Tutor, yeah. Hold classes (judging only from this post, of course), I think not.

Member Avatar for masijade
0
190
Member Avatar for ug61oxk

[QUOTE=achilles92;1363224][B]how do I start making database in using access database using java? please help me.... Thank you..[/B].[/QUOTE] Closing this 5 year dead zombie. See the [url=http://download.oracle.com/javase/tutorial/jdbc/index.html]tutorials[/url]

Member Avatar for masijade
1
365
Member Avatar for serph09
Member Avatar for masijade
0
542
Member Avatar for mimsc

The same response I gave in the JSP forum for this question. Move all of this scriptlet stuff out of the JSP into one, or more, beans.

Member Avatar for masijade
0
2K
Member Avatar for EEETQ

Either change the "Choice1" method to void and remove lines 23 and 33 (above), or change "Choice1" so that it does not take any argument, change line 23 (above) to include the Type declaration, and "combine" lines 10 and 12 (above). All the line numbers in this post refer to …

Member Avatar for EEETQ
0
140
Member Avatar for moustafa taha

Put that code into a different method (not main) that accepts an integer as a paramter (and change i<2*i+1 to i<2*parameter+1) and then call that method from main with 10000, 20000, etc (which can be figured in a for loop from 1 to 10 multiplying this number by 10000).

Member Avatar for masijade
0
285
Member Avatar for manosha

element + element ? It might help to have a better explanation of the problem along with the code you've already tried and the error/compile messages (complete messages/stacktraces) that it produces.

Member Avatar for javaAddict
0
56
Member Avatar for llocks
Member Avatar for pk.sharma

More buzzwords with less meaning in a shorter phrase I have never seen.

Member Avatar for masijade
0
32
Member Avatar for judgemental

Change those classes to use JPanels rather than JFrames. Edit: Better (although you probably wouldn't comprehend it, yet) is to extend JComponent and override any method that you dont wan't to be able to have effect your component.

Member Avatar for masijade
0
126

The End.