4,084 Posted Topics
Re: look into charsets make sure you have the same configured for your DB. if your DB doesn't 'understand' arabic symbols, he won't interpret them right. | |
Re: your splitting is correct, but you need to use the nextLine method of Scanner, not the next method. you only store a in the String you refer to with w, so it's quite normal you only get a. | |
Re: wouldn't it be more logical to keep the unread threads marked as unread, but to have threads older then a certain amount of time (older as in, hasn't been posted in) as read instead? | |
Re: also, the next two parts of your code: catch(Exception ex) { JOptionPane.showMessageDialog(null,"Error in cosUpdate() Method","Error",JOptionPane.ERROR_MESSAGE); } catch(Exception ex){ } might cause you some trouble: 1. always catch your exceptions as specific possible, don't just rely on the Exception class to do the Pokémon move and "Catch'em all!!" 2. neither of … | |
Re: I assume you are aware of what /** * */ comments have to do with this? anyway, [this link](http://stackoverflow.com/questions/1777175/how-can-i-generate-javadoc-comments-in-eclipse) might help you out a bit | |
Re: Madhia: this thread was marked solved three years ago. think the OP is still looking? | |
Re: actually, it would compile and 'work' with just return, the problem was that he didn't end his statement with ; what do you want your random number to return? between what ranges? or no ranges at all? | |
Re: IMHO, there are a lot of better ways to learn to program then watching video tutorials, but then .. that's just me. what I do wonder is, why do you post this here? I don't see anything Java related on CodeSchool.com | |
Re: Amol555, I'll just assume that first 'HTML' in your post was supposed to read HTML5? | |
Re: trust me, with that image on it's own, we can just see what line the problem is in, but since there's no line in the editors, we don't even know what line that is. you'll have to give some extra information here. | |
Re: it's likely that libary is not in your path. | |
Re: `public String phone_number;` that is your declaration of phone_number in your activity class. now, you instantiate your activity class, but you never set a value to phone_number, so ... yes, it does still have a null-reference. you may want to do a few things here: - set default values, or … | |
Re: also, that is very messy code... learn to use servlets and separate your logic from your UI. as soon as you plan to maintain this code, you'll thank yourself for doing so. ![]() | |
Re: maybe creating an app that generates random project subjects and possible requirements. if you would start (and finish) this thing, please, be sure to make it public accessible, so that we won't be bothered with questions like 'cld u pls gimme a topic?' in the future. | |
Re: most likely, if you go over the [JSP](http://www.daniweb.com/web-development/jsp/24) forum, you'll find all the information you need about working with jsp's and servlets. if not, I can recommend the book Head First Servlets & JSP | |
Re: this is the Java forum of Daniweb. for asp.net related questions, I'm pretty sure this forum [ASP.net](http://www.daniweb.com/web-development/aspnet/18) is more suited. | |
Re: next to the fact that this forum is not meant as advertising program, you may want to update your material, and change from J2EE to JEE | |
Re: also 'It keeps giving me errors.' is a pretty vague description. if what Yetzderixx mentioned doens't solve all your problems, you may want to specify the 'errors' part. | |
Re: why would you need another way of doing so? that's a very long sentence, could you please explain a bit more clear? | |
Re: heh ... I'm not sure how the deletion is handled, but if I'm correct, user info is stripped. even if the posts remain there, there won't be a link left to who made them. but for questions like this, I think this is a better suited forum: http://www.daniweb.com/community-center/daniweb-community-feedback/26 | |
Re: my advice: you seem to know the basics of jsp, no head over to servlets. that should get all of that java code out of the jsp file, and make it a lot easier to work with. | |
Re: [this](http://docs.oracle.com/javase/tutorial/essential/io/buffers.html) might be a good place for you to start searching | |
Re: the JRE is the runtime environment. when installed on your system, it allows you to run Java applications. if you want to write your own, though, you'll need a bit more. you'll need the JDK (development kit) for that, it contains the JRE, but it also contains additional tools you'll … | |
Re: also, having your main method throw Exceptions is a very bad design, you should get out of your system as soon as you can. remember: the main method is the very last place where you can catch the exceptions and add some exception handling. | |
Re: not getting the proper code... what do you have so far? | |
Re: in a bit a "real time" example: a person is born, you set his age to: 0. let's say, you run a thread. each year on the same day, you have to change that persons age to age+1. you can't, however, do that using the constructor, because if you do, … | |
Re: implement a keyListener. in the methods, print the value of the char linked to the KeyEvent, that way you know which charvalues to filter on. | |
Re: http://properjavardp.sourceforge.net/ | |
Re: you are using the == operator to compare Strings' values, you should use the equals method. | |
Re: jre is not a compiler, it contains a compiler. it's the runtime environment. have you set the path to the jre in you OS environment variables? the followng > something like a problem to do with "main"and also the red buttons is a very vague description. I assume he's saying … | |
Re: why would you do that? I guess you could do that by keeping every object reference that you create also in a List somewhere, and counting those that are 'null'. | |
Re: and that's really the reason you revive an old thread? | |
Re: where did you get this code? and what exactly do you think it does? | |
Re: firstly, your title makes no sense: you can't declare methods inside methods. are the above the methods as how they work? if so ... what is the code that doesn't work? I really do not understand what you mean by this: > They work fine, however when I try to … | |
Re: writing the code yourself? download the .jar file containing the code? | |
Re: hlut... not only does your answer provide no answer to the question, but this question has been asked (and answered) over 7 years ago. considering the number of posts of the OP, I'm pretty certain (s)he isn't looking (here) for an answer anymore. | |
Re: http://stackoverflow.com/questions/5593928/how-to-convert-pdf-file-into-ppt-file-using-java http://converting.software.informer.com/download-converting-pdf-to-powerpoint-from-java/ those links might be able to help you a bit. | |
Re: well, the main problem is: you are having an exception in the class JavaApplication10, of which you haven't shown any code. you are somewhere in that class (line 20) treating an int as a boolean, that's your problem. saying more would be speculating. | |
Re: personally, I always added a check to see whether the file exists before starting to read or write, but, to answer your questions: 1. if the file doesn't exist, a new file with the specified path and name will be created. it's trying to read from a non-existing file that … | |
Re: here are a few of the very first results a 'java features' query on google returned: http://www.oracle.com/us/technologies/java/features/index.html http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html | |
Re: public class AGame{ } there you have it: a game coded in Java. enjoy. | |
Re: http://www.hibernate.org http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=hibernate+book | |
Re: this is not a "gimme codezzzz" forum. you start writing your code, we 'll help you tackle any difficulties you meet along the way. | |
Re: saying what the problem is might be a good start. | |
Re: why do you need to upload java files? there are several alternatives: use pastebin, or another site and provide a link to where your code can be found. upload an archive containing the files put the code in your posts themselves .. | |
Re: String is a datatype. for more information, I would suggest you take a look at [this](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html) and go over your textbook/course notes again. it's a very basic datatype, used in every application I've ever seen and most likely in every application/code I have yet to see, so studying up a … | |
Re: hard to say if we don't know what type cb1 is, but if it's a String it's not: `cb1 = "director"` but `"director".equals(cb1)` 1. if you want to compare two Objects on value, use the equals method, not the == operator, which will simply compare the references. 2. in this … | |
Re: I hate it to say, but your code makes not very much sense to me. having all those classes extend JFrame, I mean. anyway, what exactly is it you try to understand yet don't get? |
The End.