2,443 Posted Topics
Re: 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; … | |
Re: [i]And[/i], if he really wanted help, he would have provided the complete exception with stack trace, of course. | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: Okay? And your question about it would be? | |
Re: Start your own thread, do not hijack someone else's. Locking this thread now, as it is 6 years dead, anyhow. | |
Re: 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 … | |
Re: 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 … | |
| |
Re: 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. | |
Re: And, what, exactly, are your "problems"? | |
Re: 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. | |
Re: Well, why is there no "width" parameter in the "t2" declaration to match the one in the "t3" declaration? | |
Re: Try [url=http://java.sun.com/docs/books/tutorial/deployment/applet/]this[/url]. | |
Re: 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 … | |
Re: [url]http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html[/url] | |
Re: Yeah, configure one of the servers to use a port [i]other[/i] than 8080. | |
Re: No. Probably not. Seeing the code [i]might[/i] help. | |
Re: [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 … | |
Re: 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). | |
Re: [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! | |
Re: 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 … | |
Re: Keyword "JNI" | |
Re: 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? | |
Re: [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 … | |
Re: 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. | |
Re: 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 … | |
Re: "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 … | |
Re: 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. | |
Re: 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). | |
Re: 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. | |
Re: With a post requet you simple feed the var=value&var=value String through into the output stream. | |
Re: 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? | |
Re: Start your own thread, but that "error" is always that the path is not set (not classpath, path). | |
Re: 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. | |
Re: 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]). | |
Re: 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 … | |
Re: 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]. | |
Re: 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. | |
Re: If some of those "things" are Strings, use String's equals method rather than == to compare them. (I'm assuming efname is a String.) | |
Re: You had better explore the legality of that, first. | |
Re: 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 … | |
Re: [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 … | |
Re: 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. |
The End.