4,084 Posted Topics
Re: 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? | |
Re: 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 … | |
Re: what exactly do you mean by 'a constant value that can be changed'? | |
Re: 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? … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. ![]() | |
Re: 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. | |
Re: 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? | |
Re: [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 … | |
Re: 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. | |
Re: check [URL="http://lmgtfy.com/?q=java+mail+api"]this[/URL] | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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'? | |
Re: 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. | |
Re: [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] | |
Re: at least Jobs is consistent on winning the silver medal. | |
Re: the code for this is extremely simple and has only basic functionality. what do you have so far? what are you having problems with? | |
Re: 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? | |
Re: can you show the entire error message? maybe [URL="https://forums.oracle.com/forums/thread.jspa?threadID=442230"]this[/URL] can help you? | |
Re: you are reloading your page, so it's normal that it's going back to the original message. | |
Re: 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? | |
Re: 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: … | |
Re: what do you mean "how to get"? if you "need to get" the password and username, ask your DB admin. | |
Re: 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. | |
Re: 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. … | |
Re: [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 … | |
Re: [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 … | |
Re: there is no delete button. just a 'mark as solved'. don't forget to check your other browsers whether they still work :) | |
Re: I seriously doubt whether the amount of memory used has anything to do with the amount of text you show in your textarea. | |
Re: 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 | |
Re: 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. | |
Re: 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 … | |
Re: you didn't pass any command line parameters. do you know how to pass command line arguments? | |
Re: 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] // … | |
Re: depends on what you want: you might want to take a look at [URL="http://en.wikipedia.org/wiki/Internationalization_and_localization"]i18n[/URL]. | |
Re: have you googled "add watermark to pdf java" yet? | |
Re: 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 | |
Re: [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 … | |
Re: [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: … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: "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. | |
Re: most likely, at the point where you decide in your code that the player has won. |
The End.