4,084 Posted Topics
Re: there are several JDateChooser classes. which one are you using? check the type of Object that is returned by your chooser, and see it's api's about how to extract more specific data from it. | |
Re: first of all, the code you have above wouldn't work. your "inheritance" example would only work if: either you create an instance of that class, or you declare the sample() method as static. since your point isn't correct to begin with (for all the non-static methods, you'll still need an … | |
Re: Pavidaminie: then write the code. this is not a "come and copy of us" site. neither is this a valid reason to re-open a dead thread. | |
Re: add a print in your while method that prints every value added, then add a print for your search value, and see if that value is indeed in the list. | |
Re: you can alter the css class used, but most likely you'll get a better answer in one of the next two fora: [Web Design, HTML and CSS](http://www.daniweb.com/web-development/web-design-html-and-css/15) [JSP](http://www.daniweb.com/web-development/jsp/24) | |
Re: subramanya.vl: don't provide custom made code, give them the chance to work their issues out. also, don't provide false solutions. 2 is a primenumber, yet when your code runs, it would return false if one asked whether or not 2 is a prime. | |
Re: ehm ... what do you mean, your for loop will "return an int value"? | |
Re: Museful: nobody still followed this thread, it's ancient, dead and marked as 'Solved'. no reason to revive it. | |
Re: what have you got so far? this is just an assignment. we will help you correct your mistakes, but we're not going to write it for you. | |
Re: no. in order to run it, you need to have the JRE installed. if you want to run the jar by clicking on it, set the environment settings of your os correctly. | |
Re: arrays is the minimum of the minimum. there 's a lot more to data structures then that: check [this](http://www.theparticle.com/javadata2.html) for instance. | |
Re: I'm not sure what you are talking about, but my guess is that stuff like this Output.showMessage(menu); is where your code crashes. Unless you have a class Output with static methods (along which showMessage(..)) this will cause compile time errors.. my suggestion, for as far as I can see your … | |
Re: just check their sites for the features of the different versions. | |
Re: you don't need to know Java Game Programming in order to understand what variables do. are you familiar with Java programming? | |
Re: well, I'm not sure what it is you are having trouble with, can you be a bit more specific? anyway, look at the next two lines: can you see where you're going wrong there? String currentName = name; if (currentName.equals(name)){ | |
Re: what code? please post it here. and if the question is: write it for me, the answer is "no" | |
Re: if you want to get to get a value from an Object, from one class to another, use getters. | |
Re: data=stdin.readLine(); you do use this variable, but you never declared it. add String data; in class scope. | |
Re: any help with what? where are you stuck? | |
Re: because you haven't called the constructor of your class, which means that your head list never gets instantiated either. | |
Re: well, how do you expect us to understand it? you want us to explain variables while we have no idea of what type they are... also: saying - the code is right - just to be followed by // this I understand but it's not right... either it's right, or … | |
Re: what have you got so far? do you have to make the analysis yourself? | |
![]() | Re: ehm ... all those links end up on 404 error here, so if you want to know how to create one of those ... just link to a non-existing page. can you be a bit more specific of what it is you are trying to do? |
Re: most likely, he has just been explained all these concepts, and his teacher wants to see whether or not he understood it, which is why the assignment is quite abstract. | |
Re: unfortunately, no protection is 'unbreakable'. and even if, all someone has to do, is copy someone else's license nr. how are you to check (for each case) that it is copied and the user didn't just change pc's? anyway, you can use a combination of such things. check for IP, … | |
Re: rssk: in your other thread you made it clear you're unaware of the Object class. please, do yourself a huge favour and stop going over stuff you're not ready for yet. start with the basic concepts, and work your way to the more advanced topics, even in gradeschool, they start … | |
Re: Taywin: why do you need to do that? null is the default value of an object, so, if you create the array like this: Object[] nullArr = new Object[length]; the only object there that is not null is the array, all of it's elements are (by default) null. | |
Re: which loop do you mean? also, if you're just in Java for a week: start with learning the concepts. first learn to walk, before you try to run. | |
Re: well, it's not Java, I'll tell you that much. never just "copy code". in this case, you don't even know what language it is, so, how do you know it 'll work? | |
Re: also, you must understand: > Any sample code please ? just to read a simple file. and > ... without using any external jars ? these two are very hard in conflict. either you use libraries that are supposed to perform these tasks, or you try and write your own … | |
| |
Re: by instantiating a new JFrame and showing it in your actionPerformed method. | |
Re: you should try to stear into the direction that he can find it himself. if you do, however, want to show him something like that, why not just saying: if ( computerMove == playerMove ) return 0; if ( computerMove > playerMove ) return 1; return -1; less code with … | |
Re: that is because you are mixing up awt and Swing components. for the old awt checkboxes, you should've used the checkboxgroup, but since you arte using the Swing version (JCheckBox) which you should, you'll need to adjust the grouping component as well. | |
Re: ehm .. what exactly has this got to do with Java? if it is for a gmail account, and you want it in a desktop application: what do you still need the browser for? | |
Re: http://www.coderanch.com/t/589027/OCEJPA/certification/jpa-certification-book-OCEJPAD | |
Re: > Eliminating the horses is cheating. . . :D either that, or a brilliant scene from the Godfather. | |
Re: I assume you meant methods, java doesn't have functions (bit 'picky', but still) Kathy, what do you mean: create a new interface Payable? you already have one, now you have to use it. for instance: Employee (as a class) implements Payable, and is extended by Employee/Executive/.. that's closer to what … | |
Re: can you show your code so far and explain what it is you're stuck with? | |
Re: yes. substring, lastIndexOf, that can help you out. | |
Re: yet I recommend starting with the link Lucaci Andrew provided, it is, after all, the official tutorial. @Neversleepin : your first post seems to be a dead link, and your second one isn't actually about Exception Handling in Java, but about Exception Handling in general. | |
Re: I'm not going to check all those external links, and I imagine there are more of us thinking that way. could you please post the relevant code here in separate code blocks, so we know what the different classes are? | |
Re: we're not going to look at all those links. I just checked your first link, the javadoc. why did you post that link three times? it points to 'exact the same' url. secondly, post your code here, don't just link to several external pages. also, be a bit more precise. … | |
Re: how about ... not? why would you want to do that? one of the major upsides of Java is that it's platform independent, if you create an exe, you'll limit it to the Windows platform. just create a .jar file, that is just as well an executable, which keeps the … | |
Re: most likely, you're missing (a) bracket(s). but it would be a lot easier to say that for sure, if you actually posted your code. | |
Re: davidlad: what did you think peter_budo meant by the above post? this thread is five years old. just because some people seem to need to revive it now and then, doesn't mean it's the right thing to do. the chances of the OP still looking for a solution for this … |
The End.