4,084 Posted Topics

Member Avatar for evilguyme

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 …

Member Avatar for stultuske
0
112
Member Avatar for 03hasnam

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.

Member Avatar for 03hasnam
0
221
Member Avatar for Torf
Member Avatar for jonow

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.

Member Avatar for stultuske
0
224
Member Avatar for suavedesign

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 …

Member Avatar for stultuske
0
178
Member Avatar for androidf

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for chazzkat
Member Avatar for sonicx2218

[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 …

Member Avatar for stultuske
0
158
Member Avatar for kalcio
Member Avatar for 47pirates
Member Avatar for JamesCherrill
0
105
Member Avatar for rushikesh jadha
Member Avatar for peter_budo
0
113
Member Avatar for rushikesh jadha

you were just given what you need to know. tried running these commands yet?

Member Avatar for rushikesh jadha
0
313
Member Avatar for dennysimon

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 …

Member Avatar for dennysimon
0
337
Member Avatar for Goldfinch

what problem is it giving? is it throwing an exception, do you get an error message, .. ?

Member Avatar for Goldfinch
0
181
Member Avatar for rushikesh jadha

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.

Member Avatar for rushikesh jadha
0
158
Member Avatar for vartikachandra

[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??

Member Avatar for stultuske
0
208
Member Avatar for 3nrichedd

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.

Member Avatar for stultuske
0
211
Member Avatar for Kalpesh Rajai
Member Avatar for mallikaalokam

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.*; …

Member Avatar for rushikesh jadha
0
197
Member Avatar for CertifiedMan
Member Avatar for sonicx2218

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 …

Member Avatar for stultuske
0
119
Member Avatar for scheppy

have you tried the valueOf(...) method? the String class doesn't have a StringValue() method, which is exactly what your error is telling you.

Member Avatar for JamesCherrill
0
257
Member Avatar for sharathg.satya

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, …

Member Avatar for dewitt-joyce
0
289
Member Avatar for jamie6441

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 …

Member Avatar for stultuske
0
290
Member Avatar for sarathsshanker
Member Avatar for stultuske
0
222
Member Avatar for ndrichim

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 …

Member Avatar for Philippe.Lahaie
0
354
Member Avatar for grendel0

[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 …

Member Avatar for javaAddict
0
5K
Member Avatar for pseudorandom21

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 …

Member Avatar for jwenting
0
258
Member Avatar for rushikesh jadha

what does it do? does it throw an exception, is there an error message, or does it just not show the image?

Member Avatar for rushikesh jadha
0
228
Member Avatar for rushikesh jadha

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 …

Member Avatar for rushikesh jadha
0
101
Member Avatar for laklaker

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.

Member Avatar for JamesCherrill
0
471
Member Avatar for DJSAN10

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 ;)

Member Avatar for DJSAN10
0
199
Member Avatar for nsafi17

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 …

Member Avatar for stultuske
0
149
Member Avatar for jimJohnson

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?

Member Avatar for stultuske
0
233
Member Avatar for Thermalnuke

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.

Member Avatar for Thermalnuke
0
138
Member Avatar for cloud02

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 …

Member Avatar for Rashakil Fol
0
178
Member Avatar for ghada ali

well, have you checked what JamesCherril told you? I think that's exactly the problem you are having, based on this stacktrace.

Member Avatar for ghada ali
0
360
Member Avatar for dineshswamy

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Goldfinch

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 …

Member Avatar for DavidKroukamp
0
134
Member Avatar for ThaiAmL

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.

Member Avatar for stultuske
0
768
Member Avatar for 3nrichedd

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.

Member Avatar for hiddepolen
0
255
Member Avatar for warlord902

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 …

Member Avatar for peter_budo
0
236
Member Avatar for bo0ga

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 …

Member Avatar for Mehmaan
0
302
Member Avatar for MooGeek

@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 …

Member Avatar for stultuske
0
388
Member Avatar for monica86

[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 …

Member Avatar for stultuske
0
7K
Member Avatar for jackbauer24

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 …

Member Avatar for jackbauer24
0
174
Member Avatar for sagar2dumbre

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, …

Member Avatar for sagar2dumbre
0
171
Member Avatar for jackbauer24

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?

Member Avatar for JamesCherrill
0
173
Member Avatar for arathy nair
Member Avatar for arathy nair
0
444
Member Avatar for autorunman22

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 …

Member Avatar for autorunman22
0
274

The End.