2,443 Posted Topics

Member Avatar for Rashakil Fol

[QUOTE=Rashakil Fol;791455]I'm not sure which is worse. Having students use throws clauses or having so-called professionals write [code] try { ... } catch (Exception e) { e.printStackTrace(); // or whatever it is }[/code] For that reason, I think encouraging people to mindlessly catch exceptions is worse than having them mindlessly …

Member Avatar for ~s.o.s~
0
151
Member Avatar for AllenB

[QUOTE=javaAddict;785644]BURN THE HERETIC. KILL THE MUTANT. PURGE THE UNCLEAN. FOR THE EMPEROR!!!! [/QUOTE] Rape the horses and Pillage the women! <Pause> Ah, I mean .....

Member Avatar for sciwizeh
0
139
Member Avatar for riya_s505

Set your path (not classpath) or type the full path to the command

Member Avatar for stephen84s
0
75
Member Avatar for starsinthesky

[QUOTE=zeeyon;785638]who knows?[/QUOTE] <raking metal cup across iron jail bars/> Nobody (at least the trouble I'm in)! It might help to know a [i]few[/i] more details. What is it doing, that it should not be? What is it not doing, that it should be? What compiler messages are coming (post them …

Member Avatar for starsinthesky
0
112
Member Avatar for llemes4011
Member Avatar for navinlearns

First of all, why 25 different ping classes? Simply create [i]one[/i] with a constructor that takes parameters. And then you start 25 threads that each start an additional 10 processes and you're wondering why it might take a bit of time? And, you're performing all of these actions in the …

Member Avatar for masijade
0
177
Member Avatar for Blackeagle

sed with the -n option and the "p" "operator". Try reading the man page for sed again, then post your attempt here.

Member Avatar for Salem
0
100
Member Avatar for puneetkay

Checkout the Map returned by conn.getTypeMap() (conn being your Connection object, of course).

Member Avatar for masijade
0
182
Member Avatar for localp

[QUOTE=stephen84s;778936]If you are on any Microsoft OS chances are that no such server exists on your system. You can also test the presence of an echo server by typing "telnet localhost 7" on your command line and see if it connects. If it displays "Connection Refused", then thats a confirmation …

Member Avatar for localp
0
228
Member Avatar for caps_lock
Member Avatar for caps_lock
0
188
Member Avatar for rude04

Well, I can at least say that that's nicely formatted. Otherwise ..... Did you have some sort of question you wished to ask?

Member Avatar for rude04
0
163
Member Avatar for mercury113
Member Avatar for stultuske
0
87
Member Avatar for mercury113

The same way you would in any other layout, as an item listener is attached to specific components, and not to a layout. The layout has nothing to do with it.

Member Avatar for masijade
0
264
Member Avatar for kinjal1717u

[QUOTE=javaAddict;774396]Who is stopping you from submitting it?[/QUOTE] His dog!

Member Avatar for verruckt24
0
331
Member Avatar for ezkonekgal

Of course, since the only thing "in the vector" is a reference to the linked list, not the linked list itself.

Member Avatar for masijade
0
209
Member Avatar for hypocrisy

Simply use a Set (i.e. HashSet). That doesn't allow you to add duplicate entries, but doesn't through an exception if it is a duplicate (the method to add simply returns false if the entry already exists).

Member Avatar for masijade
0
193
Member Avatar for PhiberOptik

To tell you the truth, I don't know what you mean "interpret a parameter determined by a JAR file". If it is simply to be an argument on the command line, then, of course, args[0].

Member Avatar for stephen84s
0
138
Member Avatar for srs_grp

[i]What[/i] exception? The full stack trace, please. And add a stacktrace to that first catch block, as well. Besides, getting one exception may close the resultset which would lead to the catch block simply throwing [i]another[/i] exception.

Member Avatar for masijade
0
123
Member Avatar for jackiejoe

It might help to know exactly [i]what[/i] exception occurred. But, first and foremost, you should not be doing this type of action in a JSP. And this "an exception occurred" doesn't help.

Member Avatar for sillyboy
0
114
Member Avatar for srs_grp
Member Avatar for masijade
0
90
Member Avatar for whisper_101

Then why use a textfield? Simply post the text. If you want to make it look like one, then use a small table and configure it properly.

Member Avatar for ~s.o.s~
0
84
Member Avatar for jagr200
Member Avatar for VernonDozier

The top left pixel [i]is[/i] 0,0 The divider itself, however, also has a width, and I believe the "location" for the divider is probably based on the "center" of the divider. Try using "getDividerSize", and some math for the adjustment.

Member Avatar for VernonDozier
0
152
Member Avatar for ajithraj

Yes, an upload is obviously the right way, but [i][b]not[/b] in a JSP[/i]. God's write an actual Servlet, for Christ's sake. This scriptlet stuff is becoming a real scourge. Let me guess, you got this from roseindia, right? Also, I assume that "/usr/programs/apache-tomcat-6.0.16/webapps/Pinnacle" is the directory in which your application …

Member Avatar for peter_budo
0
363
Member Avatar for ajithraj
Member Avatar for masijade
0
306
Member Avatar for baudday

[QUOTE=baudday;747693]I have looked at that thread before, didn't find it was of much help.[/QUOTE] How could it not be? Do you honestly need someone to tell you how to access an environment variable? ([inlinecode]echo $RANDOM[/inlinecode]) Or maybe how to store it's results? ([inlinecode]varName=`echo $RANDOM`[/inlinecode])

Member Avatar for fpmurphy
0
189
Member Avatar for soniagupta98

Seemingly [i][b]not[/b] soooooo Urgent[/i], or you'd be working on it rather than simply whining/posting about it.

Member Avatar for masijade
0
95
Member Avatar for Narayan15
Member Avatar for Aamit

An "order by" clause ? Your question has nothing to do with any programming language, what-so-ever. Find an SQL forum.

Member Avatar for masijade
-1
307
Member Avatar for BestJewSinceJC

Use the [code] read(byte[], offset, length) [/code] That method returns how many bytes were successfully read, or -1 at EOF. Use that return value to modify the offset and the length and call read again. Doing this in a while loop (i.e. != -1) will ensure your success (in the …

Member Avatar for BestJewSinceJC
0
91
Member Avatar for VernonDozier

I assume that these classes are all of the same type (or at least all extend the same type)? In that case simply pass the object itself along with the method call; Instead of [code] public class aclass { public static Color CopyAttributes (Color newcolor, int red, int green, int …

Member Avatar for VernonDozier
0
143
Member Avatar for leox99

What part of your homework do you not understand? We are not simply going to do it for you. If you post what you have, and ask some specific questions about what you're having problems with, we will help though. If it is simply that your personal life took precendence, …

Member Avatar for stultuske
0
93
Member Avatar for Saurabhw

Stick with your thread on Sun, you are getting good advice there. [url]http://forums.sun.com/thread.jspa?threadID=5353799&tstart=0[/url]

Member Avatar for masijade
0
70
Member Avatar for babusek
Member Avatar for stuuuu

Integer math will return an integer and integers do not have decimal places. You need to cast one of those numbers to a double while doing the division. [code] PercentTotal = Votes[i] / (double) Totalv * 100; [/code] But, to tell you the truth I would probably simply make "Totalv" …

Member Avatar for stultuske
0
121
Member Avatar for BestJewSinceJC

Well, if you're simply going to be reading the entire file into a single String without any kind of work on the lines read until after the entire file is read, I wouldn't use either of those, and wouldn't use a Reader at all. I would do it like this …

Member Avatar for masijade
0
141
Member Avatar for krhillery

[QUOTE=umairsario;750740]hmmm in one program its also easy, he can do it also, if he know java ! well let me also post all these program into 1 class code ..[/QUOTE] No, don't. Read the terms and conditions of this forum again (which you agreed to when you signed up here), …

Member Avatar for stultuske
0
127
Member Avatar for umairsario

[QUOTE=umairsario;750757]can you please explain in your words[/QUOTE] No. That's the whole point of your homework/test question. We are not going to do it for you. It is against the terms and conditions of this forum which you agreed to by signing up here (besides being morally and ethically wrong).

Member Avatar for masijade
0
114
Member Avatar for Srinivas14

Find an SMS Gateway (they provide internet service) and then read their documentation.

Member Avatar for stephen84s
0
324
Member Avatar for krishna168

Because you didn't do it right? Come on, how should [i]we[/i] know, when you haven't given us [i]any[/i] information to work with.

Member Avatar for masijade
0
31
Member Avatar for IMtheBESTatJAVA

You can' use access modifiers inside of a method and you can't use variables declared inside of a loop as part of that loops conditional expression.

Member Avatar for masijade
0
204
Member Avatar for leki

True, do [i]not[/i] do this from a JSP. If you feel you absolutely must do this (regardless of whether you do it from a JSP or not, and, again, you [i]shouldn't[/i] do this from a JSP), check out JSch from JCraft ([url]www.jcraft.com)[/url]. It is a (nearly) complete implementation of SSH2 …

Member Avatar for leki
0
161
Member Avatar for poggie

The description is pretty detailed. Give it a try, and if you have problems with the code, then post what you've written and we'll help you correct it. But, this post looks like a "do it for me post", and that is [i]not[/i] something we're going to do.

Member Avatar for stultuske
0
116
Member Avatar for mahaboob Basha
Member Avatar for jbennet

Assign that class instance to an instance variable, rather than a local variable, if you want to use that same instance throughout the class. I.E. [code] public class A { private B bObject; A() { bObject = new B(); } void whateverOne() { bObject.whatever(); } void whateverTwo() { bObject.whatever(); } …

Member Avatar for masijade
0
103
Member Avatar for Laidler

[QUOTE=Laidler;744300]now the [CODE] }while(!(my Input.equals(s4)));[/CODE] does not work because the myInput variable is not stated outside of the loop[/QUOTE] You're right [inlinecode]my Input[/inlinecode] is not, but [inlinecode]myInput[/inlinecode] is. Unfortunatly "myInput" is a scanner, not a String, and you want to compare Strings, so aside from moving the "read" line into …

Member Avatar for Laidler
0
121
Member Avatar for java_programmer
Member Avatar for eve.olambo
Member Avatar for Tyrone.Wilson
Member Avatar for Tyrone.Wilson
0
577
Member Avatar for shubhang

The End.