4,084 Posted Topics
Re: you're making quite some errors against java syntaxis. don't put too many brackets, and don't forget to close your statements with ';' | |
Re: not to mention you're seriously limiting the possible extensions to use, since you hardcoded them | |
Re: @Sridhar: this forum is not meant to hand out project assignments. also, how could we (even if we would want to) complete 'your project' for you, if you haven't got a project yet? @dilkhush: maybe you didn't read his post as well as you thought... he's just starting Java, so … | |
Re: maybe you 're supposed to connect to a database and write/remove/edit the data about the character in there? | |
Re: [QUOTE=jemz;1103304]hello please help me on how to get data on textfield...example input name ...input your family name ...after inputting data then i will click the add button then it will clear the textfield..then i will click the search button there will be Joptionepane prompting please input name to be search...can … | |
Re: java.util.sort may come in handy as well | |
Re: [QUOTE=ravi_bambhaniya;1102705]I try to rename .jar file but i cant that work so i request to u help me. please........[/QUOTE] start your own thread instead of re-opening an old one, and give more information as to what you are trying to accomplish and what you have tried so far | |
Re: 1. put your code within code tags, makes it easier to read for us .. [CODE] int[] answers = {1,2}; int[] inputByUsers = new int[2]; // code to retrieve input int points = 0; for ( int i = 0; i < answers.length ; i++){ if ( answers[i] == inputByUsers[i] … | |
Re: even though netbeans does provide a wysiwyg-GUI editor, I would strongly suggest you first learn about the Swing package, if only to know how to create a GUI on your own. but I would surely create your own, instead of messing around in someone else's work without knowing the first … | |
Re: a main method is just [Code=Java] public static void main(String args[]){ // call your other methods here } [/Code] | |
Re: be a bit more specific on (for instance) the next topics: are we talking plain html here, or XHtml? what have you done so far? where are you stuck, and please do not say that all you've come up with is the assignment as given to you. what code have … | |
Re: clearing... not that I know of, but you can make a print of, for instance, thirty empty lines. this way, it 'll look as if the screen has been cleared. you might not have your menu on top of the screen every time though :) | |
![]() | Re: [QUOTE=wimper;736414]Hello. See [URL="http://simpleprogrammingtutorials.com/tutorials/bst-overview.php"]binary search tutorial[/URL].[/QUOTE] if you're not capable of reading and interpreting date's, don't bother to go check about binary search trees. there's no need to revive threads that haven't been open for two years |
Re: [QUOTE=kirti19tanwar;804002]i need a online exam project on java urgently.so if anyone have this plz send me urgently.also tell how to run this.:)[/QUOTE] with Peter on this one, not to mention this point you seem to have missed: tell how to run it??? if you don't know how to run a … | |
Re: [QUOTE=eng.hosam84;722326]Hi Rav Wolf , when you compile your java code , a .jar file is created .. then you can use any of the progras that converts jar to exe such as "installJammer" , InstallJammer creats a .exe file from the .jar file .. I hope i helped you .. … | |
Re: since I don't know your code, this is just the concept, not the right code add all your 'products' into an array of the type product and add the sum [Code=Java] Product[] list = getChosenProducts(); int total = 0; String toPrint = ""; for ( int i = 0; i … | |
Re: why don't you try adding the comments yourself? a better option would have been to start a new thread, refer to the code and ask for information, instead of reviving an old thread. if you want to know what heap sorting does, you could also have googled for it | |
Re: you do know it's allowed to start a new thread, don't you? no one has posted in this one for almost 4 years, that could have tipped you off it's not an active thread anymore. | |
Re: [QUOTE=shockwave_05;799434]Ei can you help me? what's wrong with my program? i think there's something missing. Please help! Thanks![/QUOTE] well... my name 's not Ei, but I'll try to answer for him... 1. tell us clearly what you want that the code you wrote should do (that does not mean repeat … | |
Re: no idea? and you're in the final year?? well, if you're fixed on making a media player, you might start on the gui, easiest part I figure. try to decide what formats you want to be able to play (all might be a little much :)) and what you need … | |
| |
Re: open book exam means you're allowed to take a book for aid on the exam, normally, you don't get the questions up front. even if you're not that good at java and even if it was just a one hour course, it was a course, you've been tought, and the … | |
Re: [QUOTE=christiangirl;841243]it was thrown here: myBackgroundMusic = new AudioStream(new FileInputStream("youtube - gift of gab - way of the light.wav")); myData = myBackgroundMusic.getData(); myLoop = new ContinuousAudioDataStream(myData); But the file does exist, but I think maybe I'm not putting it in the right place. Where does it need to be put? Also, … | |
Re: [QUOTE=dkerber;832018] What do you suggest?[/QUOTE] start a new thread? | |
Re: would depend... several colleges and firms have a clause in their contracts that states that, if you write it using their hardware (a pc in a lab at college, a laptop from work, ...) the code (and the rights to it) is theirs if you write it on your own … | |
Re: just a few remarks: you're calling the calcarea - method with a parameter, but you have no parameter calcarea that takes parameters it should take the parameter 'double radius' like this: [Code=Java] public static double calcarea(double radius) { area = (radius * 3.14)^2; // idd, don't just copy paste this, … | |
Re: but if you do that, don't use: [Code=Java] switch(choice){ case 1: //your code break; case 2: // your code break; case 3: // your code break; } [/Code] simply, because if you enter 'A', 'B' or 'C', the switch will never have the values '1' '2' or '3'. | |
Re: [QUOTE=BestJewSinceJC;736521]You're doing a project for your major and you expect someone on here to give you the code? Lol.. rearry?[/QUOTE] don't tell me this is the first one you see trying to get this done? | |
Re: [QUOTE=BestJewSinceJC;827626]Maybe I don't understand what a chat window is, but don't you have to connect to another machine in order to chat with someone? I don't see code involving Sockets anywhere. . ?[/QUOTE] since he states he's a newbie on the entire programming part, I doubt he's already been given … | |
Re: and you could do the next: [Code=Java] int[] evens = new int[25]; // as Verruckt pointed out, you don't need one of size 50 int location = 0; for ( int i = 2; i < 50; i = i + 2){ evens[location] = i; location += 1; } [/Code] … | |
Re: that depends ... is it supposed to work only for your player, does it have to be compatibel with (for instance) winamp, ... ? if it just has to be for your own player, you can always create a file and fill that with (for instance) ../albums/albumName/song1.mp3 ../albums/albumName/song2.mp3 ../ost/ostName/song1.mp3 read … | |
Re: and since you're working with String-objects, make sure they're valid numeric values before you try to compare them :) | |
Re: maybe you don't know much (yet) but this is exactly the reason you are given assignments like this, to get to know the syntaxis and regulary used methods and to create your own implementation of them. asking us to just give you the code would mean that in a week, … | |
Re: [Code=Java] public void showInputPrompt(String showFrame, String messageToUser, String dialogTitle, int infoStyle { JOptionPane.showInputPrompt(showFrame, messageToUser, dialogTitle, infoStyle); } [/Code] what exactly is it you're trying to do here? asking the user for input? do notice you're returning nothing (hence, the void) If I understand correctly what it is you're trying to … | |
Re: I think he's trying to get a servlet running, not sure though | |
Re: if this is one line, how do you think to convert this to a number? >> Smith 12 14 15 12 16 -1 I'm pretty sure Smith is not a decimal value. you'll need to split up this line in an array containing: one name, several numbers, the -1 (end-of-line) … | |
Re: [QUOTE=budz;813882]who said i wud bs last assignment just want it out the way enit[/QUOTE] got English out the way too? have you got some code of yourself you can show us, or are you just freeloading on your classmates? | |
Re: what kind of media files are you trying to play and do you have everything needed to play 'm installed? can you be a bit more specific about what goes wrong, what errors you get, post the relevant code and try to use code tags. it'll make it a lot … | |
Re: also, wonder why he wants this. isn't he just asking us to write an application for him so he can rip off someone elses htm/jsp/php/asp/... code, with al that goes with it? | |
Re: [QUOTE=joseph001;812217]HI friends I am Joseph from London. I am trying to find the answer of your question so can you send some detail of the above question. Joseph Times might be tough, but slashing your car insurance is easy, so.... *url removed*Auto Insurance in California*/url removed*][/QUOTE] so ... Joseph from … | |
Re: where/how do you obtain this output? since you have trouble getting it copied, I take it it is not from the same application as you are working on? personally, I can't say I have ever (tried to) come accross an application to do this, so I doubt I'll be immediately … | |
Re: [QUOTE=Narayan15;809083]Hi, I want to show running time in java Please write java code for me. thanks in advance.[/QUOTE] 'java code' see? I just wrote it for you. this is the kind of application you should be able to write within about ten minutes. run a thread, let it constantly refresh … | |
Re: I once had to do something similar with a piece of code for the company where I did my internship, and they wanted me to use some scheduling functionallity in Windows. Didn't work with .jar files, so I first had to turn the program into an .exe executable, so not … | |
Re: [QUOTE=milhouse79;808372]It's tough to find time to get help outside of class, because I work full-time and I am a full-time student. I'm trying everything I can to make it through this class. After this I'm done with programming. Thanks[/QUOTE] then why not look for the help you need inside the … | |
Re: [QUOTE=ppp83;807491]I have another question .refer to [url]http://www.daniweb.com/forums/post807486.html#post807486[/url] Thanks.. Confused[/QUOTE] and your question there is: how to set settings in the pom.xml ... you might want to clearify a bit. what is it you try to put in the pom.xml? which pom.xml are we talking about, the one that oversees the … | |
Re: [QUOTE=hidash_in;807434][B][I]Hi all, i have to download a file from a server automatically without any manual interaction. I dont know whether it is possible. [/QUOTE] [/B]why would this not be possible?[B] [QUOTE=hidash_in;807434] Any one of you know the solution for this problem please send me the code. Thanks Hidash[/I][/B][/QUOTE] because this … | |
Re: 1. start off with some lineair developing in Java, to get to know the syntaxis 2. learn to think in an OO way, and learn how to code that in Java 3. now you can think about writing such applications | |
Re: and what are the errors you are getting? what is it that you don't understand? getting a random element, or storing it in the new array? I just briefly glanced at your code, and I'm not entirely sure, but trying to store an Integer in an int array .. does … | |
Re: [QUOTE=shahab.burki;806560]I understan that. What I cann,t understand is showing throgh example. For Example I am going to store char's "A A A A A" in array. for some reasons I want to manipulate it later then how can I do that? Thanks[/QUOTE] where lies the problem? in declaring the array … |
The End.