4,084 Posted Topics
Re: and do keep in mind that working with frames has a serious downside: if you have your main page and your menu in separate frames, if you add your page to your favourites and open that page later on, chance is you'll only get the main frame, not the entire … | |
Re: your jsp is looking for a class BookingBean, which it can not find. it may not have been compiled, it may not exist, or it's not on your path. | |
Re: or just right click in it and select 'run as' | |
Re: well .. you can give your div's (or labels) id's, and triggered by the onchange of your selectbox, get that element (by the id) and set it's innerText, innerHTML,... That should get you started, I guess. | |
Re: we don't need a link to your webpage, we need to see your code. just post it here. also, finding help or tutorials that show you how to create popups is not that hard: [URL="http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/"]yensdesign[/URL] for instance, I looked at that example when I needed to implement a number of … | |
Re: don't know of any, since I never really had to do anything like this, but, worst case scnenario: you can write a class that creates a .html file and writes all the code in it. it's not different from writing a txt file, you'll just have to be more cautious … | |
Re: and ... what exactly are you stuck at? | |
![]() | Re: [QUOTE=rushikesh jadha;1751731]use compareTo method of string to compare two string if it return 0 then they are equal else not equal. Example:- firstString.compareTo(secondString)==0 then equal.[/QUOTE] why do you always make things harder then need be? if you want to check two String objects for equality, why not use the equals … |
Re: and ... what exactly is the problem you're having? | |
Re: this is very little information to go on .. can you elaborate on the matter? | |
Re: and if you're looking for a DB written in Java, google Derby DB | |
Re: you were just given what you need to know. tried running these commands yet? | |
Re: well, that is because you haven't created the text file there. is there a possibility that the elements will be different on another machine, or during another run of the application, or will it always have the same values? also good to know, is whether every instance of the application … | |
Re: what problem is it giving? is it throwing an exception, do you get an error message, .. ? | |
Re: you'll need to connect to the database, using a JDBC connector, then write the correct code and sql queries, and execute them. [URL="http://dev.mysql.com/usingmysql/java/"]here[/URL]'s a good place to start. | |
Re: [QUOTE=rushikesh jadha;1750780]use scanner it might help you.[/QUOTE] seriously? trying to solve a thread that was solved (since the "Thank you very much" from the OP) about 3 years ago?? | |
Re: also, why exactly is your List class extending your Item class? by any logic, your List class would have a List which can contain only elements of the Item type. | |
Re: that's normal. first of all, your package statement has to be the very first one in your java file, so before your import statements. secondly, you haven't named your package java.Yo, you named it Yo, so, change your code to: [Code=Java] package Yo; // don't forget the ; import java.io.*; … | |
| |
![]() | Re: you have a method that should return a String Object, yet is returning a StringTokenizer, which should give you a compile time error. also, either your indentation of your rev method is bad, or you have one closing bracket to many. last tip: don't have your main method throw any … |
Re: have you tried the valueOf(...) method? the String class doesn't have a StringValue() method, which is exactly what your error is telling you. | |
Re: actually, they're usually caused by the programmer writing a lot of 'blablabla' instead of decent java code. a logical error: well, in most cases (unless you actually validate yourself and throw an exception yourself if your result is not what you expect it to be) will not throw an Exception, … | |
Re: can you post some code lines to show what is in your patient.txt file? also, you may want to investigate your code a bit further: for instance, if you don't have a patient.txt file, what do you think will happen on line 38? since you didn't instantiate sf, you'll get … | |
Re: every single class written in java extends the Object class. | |
Re: and to be a bit more specific: the amount of help you will receive also depends on how you define "help me build it". btw, yes, yes we can, but we are not going to spend our time making your teacher believe you know what you are doing without seeing … | |
Re: [QUOTE=grendel0;1749304]My code follows all the tutorials ive read on many sites including posts on here. Yet I keep getting this error - "The method setInt(int, String) is undefined for the type Statement"[/QUOTE] 1. the fact that you get this error, means you're not following the most basic tutorials. you are … | |
Re: most likely this 'll become more and more used, but comparing this to the older mainframe servers? well, you must understand, that the machine you would use as a 'server', you can easily place underneath your desk, while the servers you compare them to were bigger than the room you … | |
Re: what does it do? does it throw an exception, is there an error message, or does it just not show the image? | |
Re: neither of your questions have any relevance to Java. the easiest way to get an example of a bank, is to go to your bank on a slow moment, tell them you're working on a school project and need some information on the subject. I doubt there are banks that … | |
Re: read your contents in as (for instance) an ArrayList of Strings, and just add the lines you want to be added in your file. later on, when you write the file, write the lines contained in that ArrayList, which contains the original contents as well as the new lines. | |
Re: if you want it to be linked to products, you might as well tell us if you already have a name for a product (or at least a concept of what it's going to do). just a small tip, though: don't try 'Microsoft' or 'Google'. I hear they're taken ;) | |
Re: set the value of the second string, set a difCounter to 0 iterate over the original one by charAt, and compare the char's. if the char's are different, add 1 to your counter. then replace your second string by the concatenation of the two substrings (part of that string before … | |
Re: can't say I know the book itself. what do you mean by 'very entry level java developer'? do you have any experience with java except from studying this book? | |
Re: well .. iterate over all the char's you have, and add all the chars that are on an odd place in the original String to the String you'll print later on. | |
Re: also, considering the fact that JavaScript can be disabled by the user, JavaScript on it's own can, but isn't necessarily the "go-to-language" to know. "you must be fluent in especially jQuery json".. how come? sure, it can come in handy, but saying it's impossible to be a good web designer … | |
Re: well, have you checked what JamesCherril told you? I think that's exactly the problem you are having, based on this stacktrace. | |
Re: your paint method is overriding the paint method of the super class (JTextField) because you need to add a bit of functionality. just in order for it to work, you'll also need the original code to run, so using super.paint(g); you call the method that's in your superclass and tell … | |
Re: if you print an object using the print or println method, it will automatically call the toString method of that class. if you don't provide one yourself, it will call the toString method of the Object class, which returns a String representation as you described it. if you want it … | |
Re: you can't instantiate an abstract class. that 's not an error, it's a feature of java. you'll have to create a new class that extends the Pet class and that implements all the abstract methods, and create instances of that one. | |
Re: your super statement is based on the idea you extend GroceryItemOrder, but you don't. in your description, you state that those classes are super- and subclass, but they are not. IMHO, a better approach would be to keep an ArrayList, instead of extending it. | |
Re: and you may as well consider some time management. if you have a deadline, a lot of your stressy reactions may come of you worrying whether or not you'll be able to meet that deadline. draw lines for yourself: what is the most important? what is the most difficult? what … | |
Re: depends on what you are looking for. don't just go for "quicker and better earning" there are always those jobs in Java that are: 1. Quickly gained, lousy paid 2. Not quickly gained, very well paid 3. Not quickly gained and lousy paid 4. Quickly gained and very well paid … | |
Re: @andyedz: you admire his work ethics? you don't know his work ethics, so why admire them? anyway, next to the direct financial results, you also have to think about the indirect results. if you move to another country to 'earn more', will your family and every person you like/love move … | |
Re: [QUOTE=praadheep;1748870]hi am from india. am create a one program in java my pgm name is truition.java. am imported to all jar and package files but still i have an error in my file edeal.coreg package doesnot exists. if any one help me. ple[/QUOTE] 1. create a new thread instead of … | |
Re: it's explained pretty clear in the book: [Code=Java] public MyClass{ public MyClass(int number){ this("guess what number is printed: ", number); } public MyClass(String text, int number){ System.out.println(text + number); } public static void main(String args[]){ MyClass c = new MyClass(5); } } [/Code] the two constructors are overloading each other … | |
Re: well, is there any way technology (jsp, jsp, ... servlets, struts, ... gwt, ...) you really know? if you have skills in developing using jsp and servlets, use it, if you know struts, use it, if you don't, and your employer/client puts you on a strict deadline, don't push it, … | |
Re: it is all explained on those four pages, that's what the book is for. what exactly don't you understand, and what do you think it means? | |
Re: file1 = null; file2 = null; ? what exactly do you mean by 'delete the strings'? | |
Re: another way it can be done is having a lot of different div's with all their id's set (by css) to display: none; and then, when have to be shown, have your javascript set the right id to display: block. but javaAddict is right: it'll become a huge pile of … |
The End.