4,084 Posted Topics
Re: 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? | |
Re: or, if you want to keep it as an int, return -1 instead of null | |
Re: [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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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). … | |
Re: 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 :) | |
Re: [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 … | |
Re: [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 … | |
Re: [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. | |
Re: [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 … | |
Re: [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 … | |
Re: 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? | |
Re: [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 … | |
Re: are you sure you passed a parameter in your run command prompt when you run the prog? | |
Re: [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. … | |
Re: [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 … | |
Re: [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 … | |
Re: 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] | |
Re: [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 … | |
Re: 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. … | |
Re: [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 … | |
![]() | Re: [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 … |
Re: you can also post the new errors here. | |
Re: [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? | |
Re: @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 = … | |
Re: 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); … | |
Re: [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 … | |
Re: [QUOTE=masijade;785650]Rape the horses and Pillage the women! <Pause> Ah, I mean .....[/QUOTE] O.o ... wow .... | |
Re: 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 … | |
Re: [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 … | |
Re: [QUOTE=javaAddict;790087] The answer to your question is Yes! [/QUOTE] what question? | |
Re: 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 … | |
Re: [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 … | |
Re: 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 | |
Re: [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 … | |
Re: 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 | |
Re: [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 ;) | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: > 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 … | |
Re: [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, … | |
Re: [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 | |
Re: [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 … | |
Re: [QUOTE=i_rajivarora;776368] Please help me out!!!!!!!!!!![/QUOTE] with what?? | |
Re: [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? … | |
Re: maybe he thinks we're a part of dhl and go deliver it for him? |
The End.