4,084 Posted Topics
Re: so. what is your problem? create a new string iterate over the chars{ if the new string contains the currentChar goToNextIteration add currentChar to the new String } it doesn't only seem easy. it pretty much is. | |
Re: well, indeed frames were thé way to go to do something like this, years ago, but it could bring up some issues when saving a link to a page in your favorites. | |
Re: maybe that's because it can't find the image. anyway, when the links are to a page in the same webapp - deployed on the same server, providing a complete url (such as http:// .... ) may not be what you want to do. same goes for images | |
Re: well ... if I may quote JorgeM here: > I beleive that the majority of users that access web sites are not really interested in the short coming of any particular browser. They just expect to access a web page and get to the desired content. even though I get … | |
Re: choose something you are interrested in, that way you'll stay motivated. there are more reasons why you should decide on a project yourself, than possible projects to suggest, so the best way to start is to think: what are the (minimum) requirements? what can I do? what can I do … | |
Re: 1. it's always better to learn as much as you can about a language, but knowing more than one language is always a plus. 2. sure, an expertise in a field can be a good field, but it also depends on what you're expertise is. security, for instance. if you … | |
Re: and where are you getting a nullpointerexception? what line of your code, what variable, ... ? | |
Re: you don't get information in a screen, you get it through code, the gui might be coded in the same file, but they're not related to one another. and yes, you can pass information retrieved from a DB from one file containing a gui, to another file containing a gui, … | |
Re: it's actually the same as with one file. you just repeat the process for several files. | |
Re: > I understand overloading but what does someone mean by "Overload the increaseRed method with an increaseRed method that accepts a number that specifies an increase factor"? this line alone tells me you don't understand overloading. > Wow no answer this one tells me you don't recognize an answer when … | |
Re: int number1 = 1 + randomNumbers.nextInt( 10 ); // first die roll int number2 = 1 + randomNumbers.nextInt( 10 ); // second die roll that will generate the new numbers. add a condition which must be met for these lines to be ran, and put the first declaration of these … | |
Re: you might want to ask questions about c code in the c forum, this is the Java forum. | |
Re: this is very easy, but then again: so far he has just copy pasted his school assignment. let's not jump to conclusions and wait until he actualy asks a question. | |
Re: hey megaton, welcome to the DaniWeb community. having made a basic draft already, that's a good start. not showing us the code, and not telling us what it is you need help with, well, that really doesn't make it easy on us to help you out. but now, what you … | |
Re: what exaclty are you looking for? I assume there will be some book about JMF, but about every api that can be used to play audio ... I doubt it | |
Re: > toutput = toutput.concat(g.ToUI8()); here you have several options: 1. touptut is null 2. g is null 3. the result returned by g.ToUI8() is null well, make sure that you validate for all these options, and, if possible, you provide a default value, or you instantiate the non initialised object … | |
Re: with netbeans? don't see why you would want to use netbeans for something like that, I mean: you don't use your car to mow the lawn do you? if you mean: with code written in Java, sure. why wouldn't you be? | |
Re: first of all, start with realizing that Java and JavaScript are not one and the same thing. The first is a programming language, in which you can create autonomous applications, the latter is a scripting language, which is (usually) ran within an html page that's loaded in a browser. the … | |
Re: help you with what? you mean to say: someone who can write the code for me, well, in that case, the answer is: no. and what do you mean as 'reminder'. do you have any idea how many types of applications with reminders there are? | |
Re: deceptikon: I follow your point, and I agree, but I'm not sure about the choice of words. Object will always be involved, I think you meant to say: it's not Directly inherited. if you don't explicitly extend a class, you directly inherit the Object class. if, on the other hand, … | |
Re: NeiXude: don't provide custom-made code, give him hints as to how to solve the problem, and give him the chance to try and learn for himself. | |
Re: well, it's not really Java related. there are multiple jQuery libraries out there that you can use to get this kind of functionality, have you checked those out? | |
Re: how about the java printing api? http://docs.oracle.com/javase/tutorial/2d/printing/index.html | |
Re: what exacltly is it you're trying to verify? for instance: when your form contains checkboxes, you can't see whether those are "filled in" since not filled in is one of it's values. do you mean a textField? getText().isEmpty() should work. | |
Re: what exactly is the code that doesn't run? can you be a bit more specific about that? can you be specific about what input you're giving in the application? | |
Re: well, if you're going at it like this, the statement: > I will be pass on july 25, 2012 might be just a bit premature. opening a JFrame when pressing a button is nothing more but creating it (correctly) and instantiating it. if you can't do that, no reason you … | |
Re: first of all, since you are talking about jsp, I assume you're working with Java. you should never create .exe files from Java (unless it's one of the requirements your client sets up and you are 100% sure that it will never (EVER) be used on any other OS than … | |
Re: very inefficiënt code. too many if's, and even if you wanted to use if-s (what remains bad practice) , you should use if - else if for instance: if onesDigit turns out to be 1 ... is there really a reason to still check whether or not it is 2, … | |
Re: you could add a KeyListener to your textFields to create a reaction on invalid input. | |
Re: or learn how the import statements work. your problem was that the MyInput class was not in the same package as your main class, and you didn't provide any information to your application, that added your MyInput class to the scope of your application. | |
Re: first of all, you don't actually ask a question, but, having taken a glimpse at your code, I can figure out what your problem is: if(user.compareTo("adnan")) something tells me this is not what you want to do. compareTo is actually used to sort elements. the above gives you an error, … | |
Re: as far as I know, Google still works. googling for "Java JDK download" would've done the job. check the next link: [download JDK](http://http://www.oracle.com/technetwork/java/javase/downloads/index.html) 7u5 is the latest version. next to this: all you need to start is notepad (or any other text editor) and a command prompt. | |
Re: what exactly is your question? how to upload the jar to the device, or how to run the installed jar on the device? | |
Re: and your problem with this is? do you know how to use a simple if or Switch structure, the equals method and assigning a value to a String? | |
Re: what have you got so far, besides the assignment? | |
Re: the caesar's shift is easy to write, both in pseudo as in java code. | |
Re: iterate over the lines in the file, read them, one by one. then, use the split method with '=' as separator, you'll get an array of Strings. trim the first element of that array, and add it to your new list or array. | |
Re: unless you decide to use commercially distributed third party libraries, you do not need to pay for the use of the language, nor to distribute any code or application you've written. some authors of freely distributed libraries do ask you to include their name into your readme docs, and to … | |
Re: well, you can be very sure that Facebook is not running on a single desktop, but on several servers whit loads of cpu power and ram. also, the way you search your elements will influence. for instance, if you have all your elements in an unsorted array and go searching, … | |
Re: discussing this is just as usefull as discussing why frogs need wings. fact is, Java doesn't support multiple inheritance. Tandex, when giving reasons why people claim multiple inheritance isn't included, you forgot the two most common ones: 1. Deadly Diamond of Death - issue issume multiple inheritance is possible: public … | |
Re: as JamesCherrill says, you don't control it. of course, when they are using (and changing) the same values, you may want to make sure that the thread that starts first, completes the tasks on those variables, before the second one kicks in. synchronization can help you there. | |
Re: [QUOTE=Venks;711498]Hai Friends, How to access multiple result sets in java? iam using getMoreResults, but iam able to access only half of data from second table... is there any way to access. please help me for this problem[/QUOTE] you might want to post some code if you want us to take … | |
Re: it's not really being overriden, rather being 'redefined'. as far as PrivateMethodOverride knows, there is no other method called 'Method' but the one defined within PrivateMethodOverride itself. | |
Re: actually, we can't declare a local variable as being static :) (potato, potatoe) you have three options: either you have it as a local (non-static) variable that is defined within the main method, or you have it on class scope, either static or non-static. | |
Re: Matlock was way better than Diagnosis Murder and Perry Mason. looks like all the "good ole'" actors are dying. all those who made series worth watching ... at least they still can be found on DVD, love the memories it brings back :) | |
Re: check the error message. it clearly states at what line the error is being thrown, and the (non existing) index you're trying to access. An ArrayOutOfBoundsException is thrown when you have an array with n elements, and try to get the element with element n (or higher), or an index … | |
Re: I assume we do, yes, but that's not really a java related question, as much as a logical one. | |
Re: first of all, don't check for ':' what if someone has the text "this is my remark: checking for that char on it's own, will be treated twice in your if, while it should only be treated once :)" just jump for each and every occurence of your smiley (:), … | |
Re: actually, he's not trying to see whether the first element is (or is not) null, but he's trying to verify whether or not the array is null. when declaring the array, you'll have to add the [] square brackets, but when using it afterwards, you just use the name of … |
The End.