4,084 Posted Topics

Member Avatar for Goldfinch

what do you mean, it's not working? are you getting an error message? I would take a slightly different approach, but I don't see anything wrong with your code (in a first glance, anyway) how do you know it's not working?

Member Avatar for Goldfinch
0
966
Member Avatar for asif49

contacting companies would be a good start. make sure you get familiar with what the company you write to do, that it is in the line of what you study. if what you say, your resume is not too bad, it shouldn't be a problem. you could also ask your …

Member Avatar for jbennet
0
167
Member Avatar for Tuz
Member Avatar for 3nrichedd
Member Avatar for Tuz

this is clearly a java, not a javascript question. if your details class is within your Details package, it should find it (if, and only if, you have a default constructor.) also: why do you have a method that has the exact same name and argument list as your constructor? …

Member Avatar for stultuske
0
67
Member Avatar for murnesty

technically, once you inherit one class, you are inheriting two classes (don't forget Object ;) ) but ... well, if class A extends class B and class C extends class A, C is also extending B. other than that, I think using interfaces is about the closest you are going …

Member Avatar for stultuske
0
66
Member Avatar for Tuz

yes, you can. by using polymorphism. if you have an array of Objects, you can use that array to store each an every Object that passes a is-a test (instanceof) of the type you declared your array for. so: [Code=Java] Object[] myArray = new Object[100]; [/Code] will be able to …

Member Avatar for stultuske
0
74
Member Avatar for rushikesh jadha

what do you mean 're-starting'? I assume you won't be actually killing your process in an attempt to do so ... re-initialize all your variables to your defaults, re-set all your inputfields, and go back to the original screen.

Member Avatar for hfx642
0
239
Member Avatar for javaa

they're not deleted, you just need to change your code if you want to use resources within your .jar file. if I'm not mistaken, you'll need to use the getResource method from the ClassLoader class.

Member Avatar for javaa
0
142
Member Avatar for oonebaddog

well, you don't actually need javascript to do that. since you are posting in the jsp forum, I assume the jsp/servlet combo would serve you best. do you know anything about java coding?

Member Avatar for oonebaddog
0
1K
Member Avatar for Heinz Stapff

[QUOTE=Heinz Stapff;1750902] [B][U]THE SCRIPT[/U][/B] [CODE] if(names.length<3) //check that input isn't less than 3 words long ie. 'John P Smith'='John Smith' { reply.innerHTML='Your name must be 3 words long eg. John P Smith.'; name.value='Error!'; //lower case 'r' repeated 3 times? name.style.color='red'; return:false; } if(names.length>3) //make sure input value not 'John P …

Member Avatar for Heinz Stapff
0
595
Member Avatar for AbdullahJava

also, taking a look at java syntax and 'stuff' might help you out figuring out why your code won't compile. 1. don't declare two times the same variable 2. don't use the values a or b unless you actually have variables a and b with a value.

Member Avatar for jackbauer24
-1
183
Member Avatar for anand01
Member Avatar for anand01
0
105
Member Avatar for uurcnyldrm

how about a 'random project generator'? or a search engine searching the forum for 'project ideas'? here's a short summary of why (maybe) we shouldn't give you too much ideas: 1. we do not know what you have studied/still study, what techniques you've seen and which you haven't. 2. we …

Member Avatar for DavidKroukamp
0
713
Member Avatar for Xinen

well ... I don't know what print does (I just assume it's a simple System.out.print) what exactly are you trying to achieve? oldX = x; x = x+5; x = x - oldX; since the only difference is the + 5, it's quite normal the output will always be 5

Member Avatar for stultuske
0
102
Member Avatar for thejoker011

I think he misread the first post: he believes the OP's question was: 'I want the java api' but by reading the entire post it should be clear to him that the OP actually asked: 'I want the serialo java api' which is not open source, freeware, shareware, ... but …

Member Avatar for thejoker011
0
222
Member Avatar for emclondon

you can create your own thread classes by: a. extend the Thread class (which I would advise against) b. implement the Runnable interface what exactly do you mean by a 'Thread Pool Executor'?

Member Avatar for JamesCherrill
0
281
Member Avatar for samidha

and, a lot of the contributors, not at all. they're being "paid" (or maybe rewarded is a better term) by having their name as co-author. just doing their bit to make Linux all it can be.

Member Avatar for jbennet
0
156
Member Avatar for Sanna.1

[Code=Java] boolean play = true; while (play){ // ... run your code System.out.print("\nPlay again y/n: "); igen = scan.next(); if ( !igen.equalsIgnoreCase("y")) play = false; } [/Code]

Member Avatar for SasseMan
0
111
Member Avatar for happygeek
Member Avatar for furqanishaq

the code for this is extremely simple and has only basic functionality. what do you have so far? what are you having problems with?

Member Avatar for stultuske
0
168
Member Avatar for softDeveloper

why would you even want to have complete methods in a jsp file? to have a single line of java code in your jsp, even though it's not very good practice, now that I could still understand, but an entire method?

Member Avatar for stultuske
0
296
Member Avatar for Zaad

can you show the entire error message? maybe [URL="https://forums.oracle.com/forums/thread.jspa?threadID=442230"]this[/URL] can help you?

Member Avatar for Zaad
0
4K
Member Avatar for Ksrinivas92

you are reloading your page, so it's normal that it's going back to the original message.

Member Avatar for Ksrinivas92
0
208
Member Avatar for mallikaalokam

that's not the point: I think you'll want to set your ch=br.read(); before you make the check against != '%'. and then, add as last line in your while: ch = br.read(); if this does not solve your problem, can you paste your entire error message here?

Member Avatar for stultuske
0
135
Member Avatar for aanshik
Member Avatar for bloodbender

4 + 6 - 3 = 7. the first thing you do, is 3 * 3 (x++ means x will only be augmented after the statement has been completed, at which point you overwrite x with the value your equation gives you.) so, the next thing that will be calculated: …

Member Avatar for bloodbender
0
131
Member Avatar for rushikesh jadha

what do you mean "how to get"? if you "need to get" the password and username, ask your DB admin.

Member Avatar for stultuske
0
295
Member Avatar for breakid

basically, what you are doing is you read the entire xml file (not just a part) and you store the xml code you just read into temp.

Member Avatar for stultuske
0
135
Member Avatar for BuckOneArm

a link to your website won't do us a lot of good. it's good to give that if you want us to review or give an opinion about your website itself, but if you want us to check why your code isn't working, you'll have to show all relevant code. …

Member Avatar for stultuske
0
121
Member Avatar for Bassznapper

[QUOTE=hericles;1757513]in the CSS specify it a width (I'm guessing 950px)[/QUOTE] be careful when doing this: you'll be assuming all clients show your page the way you see it, but you need to take into consideration that other users might have another screen resolution. try as much as possible to have …

Member Avatar for stultuske
0
197
Member Avatar for vikkii_gv

[QUOTE=Vetha;1757374]Hello, You can just use the javascript in your jsp program to display the message.[/QUOTE] you can also realize that this thread hasn't been responded in for almost six years. I think it's safe to assume that either the OP has solved the problem, or isn't really looking into it …

Member Avatar for stultuske
0
128
Member Avatar for mshdpotato

there is no delete button. just a 'mark as solved'. don't forget to check your other browsers whether they still work :)

Member Avatar for stultuske
0
523
Member Avatar for Connavar3

I seriously doubt whether the amount of memory used has anything to do with the amount of text you show in your textarea.

Member Avatar for Connavar3
0
415
Member Avatar for Torf

also: size is not supposed to be an array. it's supposed to be a single int, which has the value that you should use to set the length for the arrays:VALID_ITEM and VALID_ITEM_PRICE

Member Avatar for Torf
0
160
Member Avatar for evilguyme

you may want to be carefull by setting a fixed width or height, since you have no idea who will visit the page and what resolution their screen/video card can support.

Member Avatar for almostbob
0
142
Member Avatar for adil_bashir

which one? and don't give a description, post the error message here, since it will tell us exactly where the error occurs. that'll save us the time to read all that code above. to give you a bit of an idea of what your problem is: if you have an …

Member Avatar for adil_bashir
0
176
Member Avatar for adil_bashir

you didn't pass any command line parameters. do you know how to pass command line arguments?

Member Avatar for adil_bashir
0
94
Member Avatar for MrHardRock

well, you're not calling your method, and you have written no code to be performed after reading those two numbers. what do you expect it to do? also, in your recursive method, I think in one of the cases you should not call the method again, like this: [Code=Java] // …

Member Avatar for MrHardRock
0
304
Member Avatar for DarkMonarch

depends on what you want: you might want to take a look at [URL="http://en.wikipedia.org/wiki/Internationalization_and_localization"]i18n[/URL].

Member Avatar for stultuske
0
77
Member Avatar for rushikesh jadha
Member Avatar for arathy nair
Member Avatar for sergent

hmm ... I usually work on a Windows machine, but IDE tends to differ: NetBeans: when I'm writing a simple class lib Eclipse: for 'normal' webapps SpringSource <eclipse based>: when working on a GWT project JCreator or Notepad++: when I'm creating small, single class app's

Member Avatar for hystaspes
0
331
Member Avatar for moe0

[QUOTE=adil_bashir;1756811]Use access modifiers with postal 1 and postal2 and then use get() and set() methods for these two strings so that you can refer to them at any place using the get() methods.[/QUOTE] that's a bit redundant. he already has those two variables outside of his while loop, simply because …

Member Avatar for DavidKroukamp
0
75
Member Avatar for gatorgirl

[QUOTE=gatorgirl;1756867]So, I have multiple classes modeling a university. I have Student which has subclasses GradStudent and UndergradStudent. I also have a course class. I am having issues figuring out what to pass to add and drop students and to add and remove courses. I keep getting errors like this: ./Student.java:39: …

Member Avatar for stultuske
0
3K
Member Avatar for syeda amna

if you're good at web development, but suck at coding non-web apps, you'll be paid more as a web developer, and vice versa. it depends on your skills, your employer, ... there is no real 'definitely this one' kind of answer here. if I were you, I would be more …

Member Avatar for Rashakil Fol
0
244
Member Avatar for BlackStar0703

if you want to program something, first, write down what you want in plain english (or your own language, if english isn't your first language :) ) the nouns you find in that text, are the objects (classes) you'll need. the verbs are the actions (methods) to write. actually, they …

Member Avatar for BlackStar0703
0
517
Member Avatar for marsangel

well ... you could a. try [URL="http://www.lmgtfy.com/?q=autorun+usb"]Google[/URL] b. create a new thread if you actually have a new question

Member Avatar for DavidKroukamp
0
1K
Member Avatar for AMeddaugh

"my Java teacher isn't very good" is a very bold, and probably inaccurate statement. I asume you've heard of the if-else structure? if not, a switch statement could help out as well.

Member Avatar for AMeddaugh
0
150
Member Avatar for dsmith12
Member Avatar for DavidKroukamp
0
195

The End.