2,443 Posted Topics

Member Avatar for arpit_
Member Avatar for jtodd

You include the parameter types (i.e. method(int a, int b)) when you declare a method, not when you call it. When you call it you simply provide values (or variables referencing values) i.e. [code] public int someMethod(int a, int b) { // do something } ..... int someInt = 2; …

Member Avatar for masijade
0
138
Member Avatar for k2k

[i]And[/i], if he really wanted help, he would have provided the complete exception with stack trace, of course.

Member Avatar for masijade
0
718
Member Avatar for deepak.marur

Well, if they are communicating over the mod_jk apache module and the associated tomcat protocol (ajp?) there is no difference in the tomcat setup, and of course, if you're asking how to configure apache for ssl, well, an apache forum would appear to be a better place for answers for …

Member Avatar for masijade
0
63
Member Avatar for Tiny_trixer

deleting the first (and setting the "current") would be more like [code]fremst = fremst.neste; denne = fremst;[/code] because, otherwise, you are never changing the value of "fremst", and so, are never "deleting" anything.

Member Avatar for Tiny_trixer
0
121
Member Avatar for jmguerriero

That is VB style. It doesn't work that way in java (that would be pass-by-reference which java is not. you do methods like this [code]... double d = SomeObject.someMethod(); ... //SomeObject someMethod method public double someMethod() { return 1.0; } ...[/code]

Member Avatar for jmguerriero
0
424
Member Avatar for ronyyy
Member Avatar for hooimeinwong
Member Avatar for yumyam09
Member Avatar for wardduncan

Start your own thread, do not hijack someone else's. Locking this thread now, as it is 6 years dead, anyhow.

Member Avatar for masijade
0
151
Member Avatar for gabib3b

Then probably [i]not[/i] in the "right" directory. In tomcat, your classes are either in a package heirarchy structure under web-apps/<your-app>/WEB-INF/classes or in a heirarchy structure in jar files in web-apps/<your-app>/WEB-INF/lib and "system" resources, such as JDBC drivers and the like, are in shared/lib or common/liblib in Tomcat versions before 6 …

Member Avatar for masijade
0
131
Member Avatar for manofspider

Uhm, if it's "web-hosting", chances are you only have "web" space. I.E. you can place pages, and probably jsps, servlets, phps, asps, etc there, as well as at least a small "download" area, but anything else is a system application and those lie outside the realm of "web-hosting". Ask your …

Member Avatar for masijade
0
125
Member Avatar for suave_sak
Member Avatar for snprime

Nope! If you only want to loop over a "sub array" the "old" for loop is better. An alternative, if it is an Object array, is to stop looping (break) at the first null object.

Member Avatar for snprime
0
107
Member Avatar for ozidub
Member Avatar for blazinhieu
Member Avatar for achiman
Re: Help

There is more to that exception than just "out of bounds". It tells you [i]exactly[/i] where it happens, it [i]might[/i] help if you tell [i]us[/i] that as well.

Member Avatar for masijade
0
84
Member Avatar for vinothkumarrvk

Well, why is there no "width" parameter in the "t2" declaration to match the one in the "t3" declaration?

Member Avatar for masijade
0
154
Member Avatar for ctsarsh
Member Avatar for masijade
0
183
Member Avatar for ceyesuma

Sorry to break this to you, but it isn't OOP if you [i]don't[/i] use objects. It [i]might[/i] help to see more code, then again, if you are creating new textfields every time you want to place a value in one, [i]that[/i] is your problem, and judging by the name of …

Member Avatar for ceyesuma
0
76
Member Avatar for smokin745

[url]http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html[/url]

Member Avatar for masijade
0
86
Member Avatar for nonhlah
Member Avatar for masijade
0
64
Member Avatar for manikandan_dani
Member Avatar for low1988

[QUOTE=gietbo;1146901]Can you share database for this bank ?[/QUOTE] Stop begging for code, that is [i]not[/i] the purpose of this site. I have already closed the other zombie threads you called back to life with your begging. If you have an actual [i]question[/i] about [i]your[/i] code, then start a thread and …

Member Avatar for jwenting
0
114
Member Avatar for jigar_cool

Oh, man. I hope this is a homework a question and not something needed for your job. In the latter case, I think you would be better off polishing up your resume (by the looks of it, it needs it anyway).

Member Avatar for rizwanshaikh
0
207
Member Avatar for Majestics

[QUOTE=Majestics;1141859]I want to design utorrent client for my semester project in java, can anyone tell me where should i start and what are the necessary steps for this, also if any useful website and information. Thank you.[/QUOTE] Here, try this [url=http://www.lmgtfy.com/?q=bittorrent+protocol]link[/url]. [b][i]Much[/i][/b] better than Salems. That bunghole!

Member Avatar for Nick Evan
-4
124
Member Avatar for kvass

Actually I don't do [code]public class Frame extends JFrame implements ActionListener[/code] but not for the reasons posted by you. ;-) I try not to extend the Swing classes, [i]at all[/i] unless I specifically need to alter their behaviour, which I almost never do. I prefer composition to extension in Swing …

Member Avatar for javaAddict
0
177
Member Avatar for shivnath
Member Avatar for halfnode

Well you're only including two place holders [inlinecode]"%-10s \t %8d\n"[/inlinecode] in your format String. Don't you think you should be including more?

Member Avatar for halfnode
0
113
Member Avatar for kgkamaraj
Member Avatar for ahp@aol.in

[QUOTE=ahp@aol.in;1141444]Hey Chris, Thank you very much. It works !! Great. Also one more thing.. Can I print the name of running java application using shell script?[/QUOTE] What do you mean "name"? The "name" is Java. Another thing you [i]could[/i] do (depends on how flexible your organisation is about this), is …

Member Avatar for masijade
0
409
Member Avatar for kvass

Doesn't really matter. You can refer to it either way you want, just make sure that you do it the same [i]everywhere[/i] in the program, and if the structure is to become "public", make sure that the "direction" is documented.

Member Avatar for masijade
0
116
Member Avatar for iamsmooth

Why are you using a PrintStream? You do know that a PrintStream will change the character encoding, right? Since the string created using s = "...." is UTF-8 encoded and the bytes (not chars) that you are reading from the ByteArrayOutputStream represent characters encoded with the System default encoding. Therein …

Member Avatar for masijade
0
99
Member Avatar for Olliepop

"Components" don't have any kind of "positioning" features. You place components into layout that is part of a container, and that layout takes care of the positioning. Also, the border is "removable" on [i]all[/i] swing elements, see the "sertBorder" method and the "EmptyBorder" class. For full positioning control use GridBagLayout …

Member Avatar for Olliepop
0
141
Member Avatar for Alpdog14

Well, certainly [i]not[/i] with * and + You're looking for substring if you [i]really[/i] want to do that, but I don't see any poinf to it, especially since hashcode is suppossed to return an int and not a String, so returning the "last 2 or 3 chars" isn't even applicable.

Member Avatar for BestJewSinceJC
0
205
Member Avatar for Merosansar

If the "if statement is not executing", then either it is not being called or the values are [i]not[/i] equal. [i]Those[/i] are the only possibilites (considering the posted code).

Member Avatar for ad_rulz
0
135
Member Avatar for mandeep.garg19

What do [i]you[/i] think, and [i]why[/i] (do you think that)? We are not here to do your (home)work for you, we will help to correct your errors, though.

Member Avatar for jwenting
0
43
Member Avatar for Alex_
Member Avatar for jwenting
0
198
Member Avatar for solomon_13000

According to the [url=http://java.sun.com/javase/6/docs/api/index.html]API docs[/url] What class does [url=http://java.sun.com/javase/6/docs/api/java/lang/ArithmeticException.html]ArithmeticException[/url] extend? Considering that, do you expect that catch block ever to be reached?

Member Avatar for masijade
0
119
Member Avatar for tgraves

Start your own thread, but that "error" is always that the path is not set (not classpath, path).

Member Avatar for peter_budo
0
329
Member Avatar for brave2010

You need to use $0 - $3 (and $#, etc) in your code. Try again. And then post your code. No one here is just going to give it to you.

Member Avatar for brave2010
0
117
Member Avatar for musthafa.aj

Uhm don't cast? We might be able to give you some [i]real[/i] help if you would post the [i]exact[/i] and [i]complete[/i] error message and [i]full stack trace[/i] as well as some [i]relevant[/i] code ([b][i]using[/i] code tags[/b]).

Member Avatar for musthafa.aj
0
3K
Member Avatar for musthafa.aj

What is wrong with [url=http://www.daniweb.com/forums/thread260995.html]this thread[/url]? What is this int[] that you want? If it is the RGB values for the entire image, then simply use the getRGB method I posted in your other thread and don't worry about creating a "Raster" object at all. If it the RGB values …

Member Avatar for masijade
0
172
Member Avatar for kgkamaraj

Why use getBytes? Why don't you use toCharArray? In any case, the easiest way (although not necessarily the most effecient) is to do [inlinecode]new String(byte[]).toCharArray()[/inlinecode].

Member Avatar for kgkamaraj
0
219
Member Avatar for dlong1969

Try using [inlinecode]'\r'[/inlinecode] with indexOf. The other thing that would help us is knowing [i]how[/i] you're reading the file. If you are using "readLine" then [inlinecode]\r \n \r\n[/inlinecode] are taken as line endings and stripped from the returned String.

Member Avatar for masijade
0
227
Member Avatar for chixm8_49

If some of those "things" are Strings, use String's equals method rather than == to compare them. (I'm assuming efname is a String.)

Member Avatar for chixm8_49
0
2K
Member Avatar for Ashish Upadhyay
Member Avatar for chixm8_49

Well, first I can say that doing e = null after having done e= idx is redundant. If idx is null at that point so is e. Another thing I don't understand is why you only ever return the first item. Is that what you want? Also, if the method …

Member Avatar for BestJewSinceJC
0
102
Member Avatar for Cort3z

[QUOTE=MoZo1;1130450][B]When you pass a string to .split instead of a regex, it uses that string to create a regex, instead of using the original string object you've passed.[/B] This is a bug I make every possible time. :S[/QUOTE] Huh? [i]Every[/i] String you "pass to split" [i]is[/i] a regex, whether you …

Member Avatar for masijade
0
171
Member Avatar for sujithy15
Re: ide

An IDE is an Integrated Development Environment. It is, at it's most basic level, a jumped up editor with compiler capability. Java Beans, at their most basic, are simple Java Classes where all members are private with getter and setter methods.

Member Avatar for sujithy15
0
186

The End.