4,084 Posted Topics
Re: is there an errormessage? have you added a check which verifies the image is found on the url you provide? | |
Re: what do you mean by that "Microsoft (h?)as it(s?) own flaws" comment? "Java is the best and would always remain good" .... that would depend on what exactly it is you are trying to write code for. It's not as if Java doesn't have its limitations. | |
Re: waaaaaay to lazy to be either one of those two ;) | |
Re: K4tFilms on his/hers probably first and only visit has deducted that the site "is lame"... must be a RoseIndia fan. to respond to the original post: > and when he ask question and alot of ppl try to find solution for him...he never say thanks for the solution or even … | |
Re: you want us to explain your idea to you, or do I miss something there? | |
Re: first of all: jquery, javascript and ajax are not really related to Java. jquery is a library/framework in JavaScript. JavaScript is a scripting language, prerequisites, being willing to put in some effort, I guess. advance Java vs core Java? good question, since not everybody that says "advance Java" means the … | |
Re: [this](http://docs.oracle.com/javase/tutorial/jdbc/index.html) could help. or looking into hibernate or JPA would be able to help you out. | |
Re: kind off think you're asking this in the wrong forum .. | |
Re: Since I assume you have no experience with JPA or Hibernate, I'll suggest you [this](http://docs.oracle.com/javase/tutorial/jdbc/index.html). EDIT: a good advice: never EVER write code like this: `catch(Exception ex){}` how will you ever know whether or not an exception has been caught there, let allone how to solve the problem? | |
Re: `System.out.println("Test1: "+ applicationForm.getFname());` my guess, you didn't set the value of applicationForm before calling the method in which this line is. make sure you call the `doSet(ApplicationForm applicationForm)` method at initialization of your application | |
Re: also, for efficiĂ«ncy reasons (well, in a small piece of code like this, it won't matter that much, but still) you are better to use either a switch statement or an if else if structure. to copy a bit of your code: if (rollTotal == 5) { rollHist[3] += 1; … | |
Re: a print statement? what is it you are having trouble with? also: since you compare instances of Grade, you may want to choose compareTo instead of the < operator. | |
Re: use a timer, that runs for one second, after that, setText("") | |
Re: also: "in QBasic or Java", why would you post anything in here about QBasic? | |
Re: your Circle class should have only one attribute, the radius, so remove the doubles area and perimeter. you'll need to calculate those from the radius. your Figure class ... well, it makes no sense. just remove it from your project. `public class Cylinder extends Circle` this looks good to me, … | |
Re: worst case ... if the Vector contains object instances of different types. | |
Re: bguild: > The point of extending a class is not to reuse the code in that class. this makes no sense. the actual point of inheritance is that you can re-use the code without re-writing it . > The real benefit of extending a class A is when there exists … | |
maybe a thought: no longer anonymous downvotes. not to discourage downvoting when appropriate, but rather so the downvoted person knows who to ask at least some explanation as to the why. | |
Re: there, you don't have the separate numbers, so what if you want to perform other operations on them? create an array of x ints, and each iteration, save the value to myArray[i]; | |
Re: define: installer. you can create a jar file containing your entire application if need be, just copy paste run. | |
Re: not to mention "reduce the stress" you'll get right before a deadline, when you have to "hurry-hurry-hurry" to remove all of that code, and hoping you've got them all. wrote a comment to make sure you'ld find them all? well, then just hope one of your colleagues didn't play a … | |
Re: also: reputation is a nice reward, but it isn't the main part of this forum (at least it shouldn't be :) ) personally, I d'rather keep track of up/downvoted posts to check where I may have gave an answer that someone believed to be from the "what the ..... is … | |
Re: try adding some print statements to check what the values of those variables are. if the expression never returns true, then it's pretty normal it never prints "hi". | |
Re: well, we don't know what getArea returns, nor how or when it is set (we can only guess), so how are we supposed to see whether the > operator will return the wanted result. as far as I know, we can't even be sure this code'll compile. | |
Re: question 1: sure ... why not? you can have an unlimited nr of classes in one .java file. and each class can have an unlimited amount of main methods (overloading). if you are talking about a main method with the signature of thĂ© main method, then, no. only a top-level … | |
Re: doubt you'll be able to do that. first of all, are you sure your Myapp application was written in Java? also: "That jar file should work in non java system also" ????? jar means: Java ARchive. how would you imagine that being runnable in a "non java system"? anyway, maybe … | |
Re: the problem (most likely) is that you haven't correctly set your environment settings in your OS. make sure your classpath is set and that it's set right. otherwise, you won't be able to run your application by just double clicking, and you'll have to go through the command line. | |
Re: //global data private double[] circles = new double[10]; what exactly do you mean by that? first, there are no global variables in Java, just to avoid confusion. secondly, if I understood correctly, you are trying to create an array of Circle objects, not an array of doubles, so what do … | |
Re: ehm ... I assume you know what "127.0.0.1" is? unless you have such a server running on the machine on which you run the application (which is very unlikely) you'll need to provide another server address. | |
Re: I guess you're looking for [this](http://en.wikipedia.org/wiki/Big_O_notation) | |
Re: google is great - google is wise. lots of links out there that can help you with this [this](http://stackoverflow.com/questions/8192204/sending-the-jframe-information-to-the-printer), for instance. | |
Re: not sure about what the exact code is, but it seems to me you are using the indices of seperate classes or instances thereof. also: your code seems way more complex then it should be. | |
Re: ehm ... who wrote the above code? if you did, you managed to figure out how to create a Timer for one second. adjust that to one minute. that would be step 1. | |
Re: maybe you need to trim the result first, if it returns " ", that is not equal to " ". | |
Re: well, if you check my profile, you'll see I have about 183 down votes (given by 30 members) ... was one way that someone (no idea who it was) felt the need to search as much posts of mine (s)he could find and down-vote it. when that 's noticed by … | |
Re: pretty normal, that font pack is from Windows itself, in Linux (or any other non-Windows OS) that font won't be found and therefore cause an error to occur. it's like scanning the 'Windows' folder on your hard drive: unless you're working in Windows, it won't work. | |
| |
Re: actually, if your question was (which I thought it was) how to do that using a constructor, your question isn't solved, you just wrote a way 'around' it. at this point, your class has no explicit added constructor, which means that the compiler will add the default (no argument) constructor … | |
Re: why do you pass frame as a parameter? also, you are showing and running an input dialog, but you're not saving the returned value anywhere, what's the use of that? could you please be a bit more specific of what the problem is exactly? | |
Re: it looks to me like he's trying to do something like multiple inheritance, he's trying to create a class C which inherits both the members of A and B. this is not possible in Java, though. | |
Re: of course this is possible. but then we're talking about jsp, jsf, gwt, ... or some other front-end framework. it's basically the same as printing it in the console: array of chars for each char, print/write a line that displays that char. | |
Re: also: a small note here... > It just prints out a blank screen this is not a question, it is a statement. and everyone that went through your code could only say: "so it does". if you want us to be able to help, be a bit more specific. do … | |
Re: you're using methods in there of which we don't know the code. do you expect us to guess? > It works with files with upto and including 5 lines. what do you mean by that? yes, it does, since you coded it that way. you're saying that the user needs … | |
Re: Radhakrishna.p: how exactly is this answer different then the one given yesterday? | |
Re: well, if you code it like that, it will work like that, but we won't write your code for you. put in a bit effort yourself,it's doable. | |
Re: the question is very understandable, it just doesn't make sense. what she is summing up are different looping-mechanisms (iterations) in Java, and we're supposed to point out all the differences and simmilarities. @baby666: they are not related to two dimentional sales person in any way, they just can be used … | |
Re: radhi: extending a class => public class Subclass extends Superclass and that's it. no, it's not your coding, what M4trixSh4d0w tried to tell you, is that you are reviving a dead thread, which you shouldn't. your question has nothing at all to do with the OP's question. if you have … | |
Re: local variables don't have default values. now, let's assume that n = 0, that's a possibility the compiler takes into account: your for loop will never run, so total will not get a value, and then, you try to print an int without a value. just change int total; into … |
The End.