4,084 Posted Topics

Member Avatar for wallet123

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.

Member Avatar for stultuske
0
126
Member Avatar for prabhatsingh

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.

Member Avatar for sheikhali449
0
160
Member Avatar for smoothe19

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

Member Avatar for smoothe19
0
105
Member Avatar for jacksbileduct

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 …

Member Avatar for JameB
0
227
Member Avatar for prnjn

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 …

Member Avatar for SagarSe7en
0
274
Member Avatar for DarkMonarch

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 …

Member Avatar for Florinmoc
0
425
Member Avatar for SagarSe7en
Member Avatar for SagarSe7en
0
389
Member Avatar for SakuraAssassin

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

Member Avatar for stultuske
0
231
Member Avatar for bipi09
Member Avatar for stultuske
0
70
Member Avatar for Valiantangel

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

Member Avatar for stultuske
0
130
Member Avatar for broodwich

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 …

Member Avatar for stultuske
0
155
Member Avatar for soham.m17
Member Avatar for stultuske
0
287
Member Avatar for softtech1011

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.

Member Avatar for stultuske
0
291
Member Avatar for xostman

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 …

Member Avatar for stultuske
0
233
Member Avatar for Nishaant

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

Member Avatar for stultuske
0
50
Member Avatar for trishtren

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

Member Avatar for trishtren
0
282
Member Avatar for london-G

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?

Member Avatar for london-G
0
109
Member Avatar for ubi_ct83

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 …

Member Avatar for JamesCherrill
0
177
Member Avatar for DWIZARD1

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?

Member Avatar for JamesCherrill
0
154
Member Avatar for hackit

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

Member Avatar for stultuske
0
258
Member Avatar for lmthuan

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.

Member Avatar for stultuske
0
202
Member Avatar for James456

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?

Member Avatar for James456
0
122
Member Avatar for GlenRogers

how about the java printing api? http://docs.oracle.com/javase/tutorial/2d/printing/index.html

Member Avatar for GlenRogers
0
117
Member Avatar for rajilakshmi

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.

Member Avatar for JamesCherrill
0
2K
Member Avatar for branflake

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?

Member Avatar for SylvesterAbreu
0
140
Member Avatar for Liz Cherian
Member Avatar for stultuske
0
42
Member Avatar for gacusana.aljan

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 …

Member Avatar for stultuske
0
107
Member Avatar for fularipk

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 …

Member Avatar for stultuske
0
146
Member Avatar for cmmmm

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

Member Avatar for stultuske
0
240
Member Avatar for jab8288

you could add a KeyListener to your textFields to create a reaction on invalid input.

Member Avatar for JamesCherrill
0
193
Member Avatar for atunio

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.

Member Avatar for stultuske
0
414
Member Avatar for adnan18

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

Member Avatar for adnan18
0
138
Member Avatar for adem87

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.

Member Avatar for stultuske
0
246
Member Avatar for Tajinderpal

what exactly is your question? how to upload the jar to the device, or how to run the installed jar on the device?

Member Avatar for peter_budo
0
240
Member Avatar for shankaraa
Re: jsp

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?

Member Avatar for stultuske
0
121
Member Avatar for RedSpyder
Member Avatar for minnie19
Member Avatar for stultuske
0
60
Member Avatar for lmthuan

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.

Member Avatar for stultuske
0
222
Member Avatar for mrgadgets

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 …

Member Avatar for stultuske
0
246
Member Avatar for asif49

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

Member Avatar for Rashakil Fol
0
254
Member Avatar for tandex

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 …

Member Avatar for stultuske
0
413
Member Avatar for rahul.ch

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.

Member Avatar for rahul.ch
0
267
Member Avatar for Venks

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

Member Avatar for jeremfg
0
151
Member Avatar for rahul.ch

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.

Member Avatar for JamesCherrill
0
207
Member Avatar for rahul.ch

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.

Member Avatar for rahul.ch
0
204
Member Avatar for Ancient Dragon

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

Member Avatar for Reverend Jim
0
42
Member Avatar for eves007

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 …

Member Avatar for stultuske
0
130
Member Avatar for antipala21

I assume we do, yes, but that's not really a java related question, as much as a logical one.

Member Avatar for stultuske
0
136
Member Avatar for B204

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 (:), …

Member Avatar for stultuske
0
216
Member Avatar for shammons1

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 …

Member Avatar for JamesCherrill
0
1K

The End.