4,084 Posted Topics
Re: when you're talking about one year experience, you won't be expected to know all the groundbreaking stuff. being in the loop on Spring/Hibernate/... does give you an advantage, though. it also depends on the frameworks the company uses and their what they expect, of which I can't say anything. | |
Re: ehm .... the above code is JavaScript, not Java. my advice, for better help on this, browse [this](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) forum. | |
Re: or you can convert the number into a String (which can be transformed in a char array) and then just loop over that chararray to print each element. | |
Re: define : "something's wrong". is an exception thrown, does it run just not find the element, .. | |
Re: looks like you did a lot of research yourself ... checked [this](http://stackoverflow.com/questions/2293636/what-is-a-good-java-library-for-parts-of-speech-tagging) link yet? | |
Re: employee isn't a database, it's a table or a view, as the error suggests (or should be), but indeed, he should check whether or not the name is correct | |
Re: either that, or add the required jars to your projects path. org.apache.derby.jdbc.EmbeddedDriver is not a part of the jre, so you'll need to have access to these classes in order to use them | |
| |
Re: what do you mean: I don't know where to go from there? it says it all in the description. just check the contents of your nodeslist and use it. | |
Re: ehm ... what is this added post supposed to mean? | |
Re: or, if you need a decent application, learn to work with servlets. | |
Re: add some print statements in your code to see what methods are being called and what the values of your variables are. | |
Re: add a KeyEventListener to a component, and implement the methods from the interface. | |
Re: nothing but very simple basic stuff: a for loop, an if statement, ... write it down in subparts in pseudo code, for instance: - read a String - for n = 0 ; n < input.size get nth letter count # times letter occurs print n for l = 0; … | |
Re: a few notes here: 1. learn to use servlets, putting snippets in your jsp page itself is bad design. 2. there is an entire JSP subforum under the 'Web Development' section, might be you want to ask your question there. 3. read your error message: > An exception occurred processing … | |
Re: how else would you create a StringBuffer instance? and yes, since ensureCapacity is not a static method, you'll need to have an instance of StringBuffer to call it on. [StringBuffer](http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html) | |
Re: one of the main advantages of Java is that it's platform independent, which basically means: it doesn't matter what OS you use, Java 'll run on all of them. | |
Re: well ... first of all, you'll have to use it. instantiate it, and call the methods through that instance. I would recommend re-naming your Array class though, for instance MyArray, that way it's easier to see for us that you're talking about a class you wrote and not an actual … | |
Re: or if you have to write your own implementation, bubblesort is pretty easy to write. | |
Re: can you post your code here? it's a lot easier to do that, than for all of us to download that zip and go through it ourselves. | |
Re: csstu: next to the fact that you are just repeating what was already told, if it were to be implemented as you suggest, there would still be a compile time error and an added logical error. 1. compile time error: there still would be no return statement if there's a … | |
Re: use printlines inside your for loops. right now you are adding all the values you want to print to a "totalSum" (although you 've called them lessThan and greaterThan). for instance: replace the line lessThan ++ ; by System.out.println("" + num[j]); you don't need those lessThan and greaterThan variables, you … | |
Re: what makes you think the code to access your db is any different? | |
Re: you can create a class Employee, and two subclasses, Manager and Salesperson. | |
Re: you don't. a JLabel can not be used as an input field. I assume what you mean is: how do I show/display an image in a JLabel? [This](http://stackoverflow.com/questions/3775373/java-how-to-add-image-to-jlabel) might be able to shed some light on that. | |
Re: also: based on the code you show, there isn't really much of javadoc that would be generated anyway. | |
Re: what exactly are you having trouble with? it's easier to check what might be wrong if we know what we should be looking for. | |
Re: also, don't do this: catch (Exception ex) { } how are you going to know whether or not there's an Exception thrown? > what ?? :S o_0 he meant: what is it exactly you expect as result, and what is the result you are currently getting? | |
Re: also: don't let your main method throw Exceptions. sure your code 'll compile and run, but where do you plan to catch that Exception? | |
Re: your first java-homework ... I'm soooooo proud!! they do grow up so fast, don't they? | |
Re: let's say you have a class that extends JFrame and implements ActionListener, you may want to do this, if within the actionPerformed you need to have access to class members of the class in which the component to which you'll add the listener is located. let's now assume you have … | |
Re: ehm ... what do you mean: "class OR datatype"? a String object is an object that is an instance of the class String, so the instance is of datatype String. not sure what it is you mean? the above two lines: String str= "hello"; and String s1 = new String("Hi"); … | |
Re: do you know what that exception means? off course it's not a compile time error, since at compilation, the jvm doesn't know what values you'll pass at runtime. | |
Re: what code are you talking about? what java emulator? what phone emulator? what did you try? do you get an error message? | |
Re: because you are comparing Strings using the == comparator, while you should use the equals method, like this: if ( HowIsUser.equals("GOOD") || HowIsUser.equals("good")) especially for the String class, there is an easier way to write this: if ( HowIsUser.equalsIgnoreCase("good")) which will return true for both "GOOD" and "good", just as … | |
Re: well, one problem is: you post this twice within four minutes. missing return statement is most likely caused by this: if(c==2) return 1; there is no return set in case c != 2, and the compiler is looking for a return statement for each and every scenario. | |
Re: a color with a certain color? you may want to be a bit more specific. do you mean you want to change the color of a text in a JLabel, do you want to set the background color of a JFrame, ... | |
Re: this might help you get started: [Read image blob from database Java](http://bit.ly/UX52Mb) | |
Re: that's pretty vague information you're giving us. can you be a bit more specific? | |
Re: a suggestion: catch(Exception ex){} return label; } you're hiding your exceptions, print your stacktrace there. what IDE you're using is not really relevant, what is, is whether or not you got an error message and, if so, which one. why are you trying to read your blob into an Ineger? … | |
Re: ehm .. why would you post a link like that? far as I can see, it's hardly informative, you're just spreading a link to your own page. also, I would update, or correct, your explanations a bit. 1. an array is not a collection, don't call it that. 2. your … | |
Re: what's stopping you from downloading it? [Click Here](http://www.oracle.com/technetwork/java/javame/javamobile/download/overview/index.html) | |
Re: why not? but keep in mind: there are no "complete a2z" courses, since what you need is knowledge about several things. start with basic Java (just look at the sticky thread on top of this forum) and later on go look for what you need for mobile applications. also: if … | |
Re: its correct, it just doesn't make any sense. it 'll cause the loop never to be executed, but if that's what the OP was going for ... (although I suspect he may have intended the second 0 to actually be his o variable) | |
Re: because usually, "closing" threads isn't necessary. the dates of the posts can tell whether or not the thread is still active. chances are, that if you read a thread that's not on the first (two?) pages, that the thread can be considered 'ancient', and thus, dead. | |
Re: if you mean an exe, my suggestion: don't. but this might help you out: http://www.advancedinstaller.com/user-guide/tutorial-ai-ext-vs.html | |
Re: actually, saying you are using NetBeans as IDE shows that you're notr really experienced. if you were, you would know that String myString = new String("yup"); just like any other code in java, does exactly the same when written in NetBeans, VI, notepad, eclipse, SpringSource, JCreator, ... | |
Re: those aren't questions, those are your assignments. what exactly are you having trouble with? | |
The End.