4,084 Posted Topics

Member Avatar for aodpreacher

why using a double for the population instead of Integer or BigInt? think it is possible to have a 0.5 person walking around in there?

Member Avatar for BestJewSinceJC
0
137
Member Avatar for youngstorm
Member Avatar for youngstorm
0
126
Member Avatar for mic2x_caspe

[QUOTE=mic2x_caspe;801820]Please can u give me a class that use an event handling so that the i can copy the code..[/QUOTE] copy-paste is the last thing you want to do, especially if you don't understand the how-and-what. Freaky_Chris, Verruckt and Ezzaral are not trying to hold you back ... they're telling …

Member Avatar for verruckt24
0
153
Member Avatar for localp

just because you play an audio file doesn't mean you have to open a visible player. now, if you want to play a .wav or .au file, or something similar, you don't need to install JMF or anything like that, but if you're trying to play .mp3 files, you have …

Member Avatar for localp
0
181
Member Avatar for jhonnyboy

[QUOTE=jhonnyboy;803284] I am using Netbeans as my IDE, do i need anything else to make a GUI? [/QUOTE] NetBeans makes it quite easy to make Swing GUI's, but I would recommend you to start without NetBeans, if you don't have the basic understanding of the working yet. NetBeans will generate …

Member Avatar for stultuske
0
203
Member Avatar for curtissumpter

[QUOTE=curtissumpter;802419]Is it safe to assume that any object that is preceded with the letter 'J' is a member of the Swing package? Just trying to get lightweight versus heavyweight components sorted properly. Thanks. -- Curtis[/QUOTE] assuming this could get you into a lot of unknown problems when using an openSource …

Member Avatar for verruckt24
0
89
Member Avatar for arvin2006

[QUOTE=arvin2006;802641]yes, i'll take it.. thanks.[/QUOTE] try and fail is a very good way to start. there's no way to avoid making big mistakes in your code like the one where you say: 'I know that doesn't work.' don't ask for samples of "complex code", don't even look at them (yet). …

Member Avatar for stultuske
0
102
Member Avatar for bluue

better yet ... make sure you have the complete code for instance: what is cities? performing actions on something you don't know ... can be tricky :)

Member Avatar for verruckt24
0
96
Member Avatar for zeiken

[QUOTE=zeiken;801795]HI!!!I am new in java i would like to know sample program that counts the number of vowels of word[/QUOTE] what exactly do you want? to count the vowels in a 'word', as a String object, or in a 'Word' document :P be a bit more specific. I believe it …

Member Avatar for stultuske
0
47
Member Avatar for spanker1

[QUOTE=spanker1;801331]plzzzzz help me on this java programming question? hello people.. can u plzzzzzzzzzzzzzzzzzzz help me out with this java programm. its due tmrw....... and i havent even get started on this program. i dont want to cheat .... actually some hints of how to do this program and a brief …

Member Avatar for stultuske
0
126
Member Avatar for vasunttfshimoga

[QUOTE=vasunttfshimoga;800383] Can we use another name for the saving the .java file ...........[/QUOTE] off course you can, you just won't be able to compile the file any more, that's all.

Member Avatar for stultuske
0
121
Member Avatar for nandomendoza

[QUOTE=PhiberOptik;800053] IE [ICODE]for(int i=smallerNumber; i<biggerNumber; i++)[/ICODE] [/QUOTE] he's asking for an infinite loop. little does he know, he already wrote one in his previous post: [Code=Java] for( int i = 3; i < 41; i) { System.out.println(" Numbers are " + i); } [/Code] this is an infinite loop, since …

Member Avatar for verruckt24
0
116
Member Avatar for tksrules

[QUOTE=javaAddict;799596]Yes, [I]rapture[/I] he was asking for us to complete his code. But if he has already done part of it, he can try and do the rest and we will help with problems he is having, provided of course we see some code[/QUOTE] technically, he asked if we could. so …

Member Avatar for rapture
-1
116
Member Avatar for snail_snail21

have you worked with Swing before? create a DBConnection (since I think you'll want your passwords and usernames to be stored in a DB) and write a frame with contains two input fields. what have you got this far?

Member Avatar for snail_snail21
0
249
Member Avatar for retrob89

[QUOTE=retrob89;799841]Ok...so I have a project due in 3 weeks and I haven't started. If i don't get it done I won't be able to graduate...[/QUOTE] no offence, but these sentences say it all. YOU have a project, YOU didn't bother to start working on it, so yes, most likely, YOU …

Member Avatar for crunchie
0
99
Member Avatar for redmaverick

are you sure you passed a parameter in your run command prompt when you run the prog?

Member Avatar for stephen84s
0
108
Member Avatar for dyollretsel08

[QUOTE=dyollretsel08;784492]i have a homework. do a program using java that will ask a user to input a infix expression , and the program will convert it to postfix expression... help!![/QUOTE] help with what? as you said, you have an assignment, which propably means your teacher wants YOU to make it. …

Member Avatar for stultuske
0
133
Member Avatar for kclove

[QUOTE=kclove;798462] Im kinda confused on how to start. Please can any one please help kick start me.[/QUOTE] check the assignment, what do you need to do, what do you need to accomplish that? which objects do you need? what variables do they have to hold? first, start with creating the …

Member Avatar for stultuske
0
110
Member Avatar for tksrules

[QUOTE=tksrules;797204]You have been hired as a Java programmer by Real Estates Solutions Inc. Your task is to write a Java applet for their web site that would enable customers to figure out their monthly mortgage payments.[/QUOTE] since we are "hired" how much is the pay? as you say it, it …

Member Avatar for stultuske
0
99
Member Avatar for campuzcrazyness

to 'append' actions to a JButton, you need to add an ActionListener to the button. for instance: [Code=Java] JButton addButton = new JButton(); addButton.setText("add"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSomething(evt); } }); ... private void addSomething(java.awt.event.ActionEvent evt) { System.out.println("add whatever you want"); } [/Code]

Member Avatar for stultuske
0
132
Member Avatar for tavy88

[QUOTE=tavy88;795333]I need someone who can tell me where can I get proposed Java project for online practice. [/QUOTE] in your own imagination. if you want to write an mp3-player, write it, if you're thinking about voice recognition or voice over IP, write it. if you want to write "RISK" in …

Member Avatar for tavy88
0
102
Member Avatar for Alishaikh

just post the code you want us to review here, not in attachment. as far as I understand from your description, you've got an array of some sort, containing objects of a class (for instance, Product) to print those: iterate over the elements of the array, and print each element. …

Member Avatar for Alishaikh
0
116
Member Avatar for k88joshi

[QUOTE=k88joshi;794972]Hello, For example, I have a class Hello and its public variable is world, but the variable world has been changed to earth so now in the program i need to go and replace the world variable with earth. this is just one example but there are many different variables …

Member Avatar for k88joshi
0
104
Member Avatar for starsinthesky

[QUOTE=zeeyon;795555]how can you convert a string, which is stored in a vector, into an integer?[/QUOTE] the best answer here would be: don't if it's stored as a String, it may very well contain a numeric value that exceeds the limits of an int if it's stored as a String, it …

Member Avatar for ~s.o.s~
0
95
Member Avatar for tmoney7566
Member Avatar for etc123

[QUOTE=doleh;794895]something like jagged array[/QUOTE] all there was to be said was already said. maybe it's because it's still early here, but is there a reason why you re-opened this tread?

Member Avatar for stultuske
0
101
Member Avatar for rayda

@Doleh: where's your explanation? writing copy-me code won't help any one to learn anything. @rayda: either you keep track of the largest number, as Ezzaral suggested, or you store all the given (inputted) numbers into an array. iterate over tjat array and: [Code=Java] if ( arrayNumbers[position] > maxNumber) maxNumber = …

Member Avatar for stultuske
0
358
Member Avatar for neighbordave

don't make it harder than needs be [Code=Java] public boolean sameCoins(Purse other) { Collections.sort(coins); for(int i = 0; i < coins.size(); i++) { .... } .... } [/Code] could be: [Code=Java] public boolean sameCoins(Purse other){ ArrayList coins = getCoins(); ArrayList otherCoins = other.getCoins(); coins.trimToSize(); otherCoins.trimToSize(); // just in case Collections.sort(coins); …

Member Avatar for stultuske
0
2K
Member Avatar for ashwathy

[QUOTE=verruckt24;792507]You have confirmed my belief that people go to any lengths to advertise their product, sometimes without even seeing that the help seeker was asking for help more than two years ago. He must have found whatever he had asked for by now, your blind advertising didn't win you any …

Member Avatar for ~s.o.s~
-1
155
Member Avatar for riyashm
Member Avatar for AllenB

[QUOTE=masijade;785650]Rape the horses and Pillage the women! <Pause> Ah, I mean .....[/QUOTE] O.o ... wow ....

Member Avatar for sciwizeh
0
139
Member Avatar for jdbarry

also, I find your code quite unreadable. it's easier to read if you change that entire if-structure to a switch: [Code=Java] int test = getChosenNumber(); switch(test){ case 0: // code to run if 0 break; case 1: // code to run if 1 break; case 2: // code to run …

Member Avatar for markhogg
0
121
Member Avatar for neighbordave

[QUOTE=neighbordave;790646] For example, if you are passed an array containing the words "Mary", "had", "a", "little", "lamb" and you are asked to return the second word, you would return "a" [/QUOTE] actually, if you want the second word, you would get "had", since that is the second element. what you …

Member Avatar for verruckt24
0
103
Member Avatar for zhane88

[QUOTE=javaAddict;790087] The answer to your question is Yes! [/QUOTE] what question?

Member Avatar for stultuske
0
76
Member Avatar for Legend003

this forum is not "for the sake of knowledge", it's for "the sake of the members to learn to develop applications in Java". No, we will not hand out free code, we will help you solve the bugs in your code if you need any help. if someone already created …

Member Avatar for stultuske
0
84
Member Avatar for jhonnyboy

[QUOTE=eng.hosam84;787655]Hi jhonnyboy . you can use "j2e_enterprise" software , which converts .jar file to .exe file . Download it and try it , actually it's perfect for me . hope my reply is helpful best regards eng.hosam84[/QUOTE] if you read his post more carefully, he asks how to run his …

Member Avatar for verruckt24
1
478
Member Avatar for faisaly

jup ... custom tags is a jsp thing... if you want to find the different types, check [URL="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags4.html#79247"]this[/URL], but I wonder if he's really that interested, a simple google on 'custom tags java' would 've gotten him all the info he wanted and more

Member Avatar for stultuske
0
126
Member Avatar for deola_lanre

[QUOTE=deola_lanre;783374]wow! wish i had code already. can you just help with sub-programs for each of these.anything at all.ill incrporate it into my prog skeleton.i have to submit this assignment in less than 24hours.pls.tnx[/QUOTE] off course we can ... I'll give you your main method for free (off course you'll have …

Member Avatar for PhiberOptik
0
221
Member Avatar for xlx16

or, if you want the value of Strings being inputted by the user instead of hardcoded, I'd suggest you look into JOptionPane and Scanner

Member Avatar for stultuske
0
101
Member Avatar for metemostan

[QUOTE=BestJewSinceJC;779187]How could you possibly have the code when the description he gave was very incomplete. Lol.[/QUOTE] which means, practically every piece of incomplete code will suffice ;)

Member Avatar for BestJewSinceJC
0
137
Member Avatar for ezkonekgal

[QUOTE=SamCris;777159]LOL!!! :)) im sorry i had to speak in our dialect... its just that i cud express myself better that way, sorry :)[/QUOTE] and you have any reason to believe there's any one other than you on this forum that has even the slightest idea of what you said in …

Member Avatar for ezkonekgal
0
233
Member Avatar for kinjal1717u

help you with what? if you want to make a website in jsp, just make it it's no use asking us to 'help' you, if you don't state what you need help with .. 'coding' is a very large section of the process, you know ... you'll need to code …

Member Avatar for verruckt24
0
81
Member Avatar for srs_grp

a solution would be to look into the classes used to write and search for append. an other, if you want to keep most of your code, is to (before you write) read the existing data, put that data and your new data in one big char array, and write …

Member Avatar for ~s.o.s~
0
147
Member Avatar for fanatic

> Hello > I am having problems with parsing a String array so that i could format it in a way that i could convert it to an integer. honestly, I'm not sure as to what you're trying to do here. if I'm correct, you're either trying to convert the …

Member Avatar for fanatic
0
109
Member Avatar for fantasy416

[QUOTE=fantasy416;777751]How can i sort a file when given a list of various countries and their population size in two different files... How can i sort them together so that the output shows country and population... please someone help me is for a assignment??? thanks[/QUOTE] since you're already working with files, …

Member Avatar for stultuske
0
98
Member Avatar for paucki

[QUOTE=darkagn;710672]Just post a description of your problem, as well as any relevant code to show your attempts, and we will try to help. [/QUOTE] relevant exceptions you get can come in handy too :) but indeed, good luck

Member Avatar for stultuske
0
140
Member Avatar for mercury113

[QUOTE=mercury113;776349] i have this code here... why do when i apply this method the score is incremented to?? [/QUOTE] because you coded it that way? [QUOTE=mercury113;776349] sorry 4 my bad english...[/QUOTE] do understand that we don't mind you having difficulties with English, we do, however, mind if you don't even …

Member Avatar for stultuske
0
88
Member Avatar for i_rajivarora

[QUOTE=i_rajivarora;776368] Please help me out!!!!!!!!!!![/QUOTE] with what??

Member Avatar for stultuske
0
32
Member Avatar for dawnzz21

[QUOTE=dawnzz21;775973] can u send alot of GUI program example..[/QUOTE] for answer to this question: I could send you a Windows CD, but that would be illegal. as you said, YOU will be joining a camp with a contest, we're not... why entering a contest if you don't want to compete? …

Member Avatar for stultuske
-1
103
Member Avatar for kinjal1717u
Member Avatar for verruckt24
0
331

The End.