4,084 Posted Topics

Member Avatar for eikal

you're making quite some errors against java syntaxis. don't put too many brackets, and don't forget to close your statements with ';'

Member Avatar for Zaad
0
82
Member Avatar for Dearster

not to mention you're seriously limiting the possible extensions to use, since you hardcoded them

Member Avatar for stultuske
1
124
Member Avatar for sridhar kosna
Re: java

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

Member Avatar for stultuske
-2
86
Member Avatar for GoldenDrago

maybe you 're supposed to connect to a database and write/remove/edit the data about the character in there?

Member Avatar for GoldenDrago
0
173
Member Avatar for jemz

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

Member Avatar for jemz
0
106
Member Avatar for libran
Member Avatar for ramjeev

[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

Member Avatar for stultuske
0
2K
Member Avatar for asadc

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

Member Avatar for stultuske
0
133
Member Avatar for kkcaddy

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 …

Member Avatar for stultuske
0
82
Member Avatar for l_03

a main method is just [Code=Java] public static void main(String args[]){ // call your other methods here } [/Code]

Member Avatar for Genni
0
251
Member Avatar for veerasek

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 …

Member Avatar for ~s.o.s~
0
6K
Member Avatar for shubhang

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

Member Avatar for blackeyedanel
0
231
Member Avatar for iamthwee

[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

Member Avatar for kdc
0
183
Member Avatar for kirti19tanwar

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

Member Avatar for shashi7616
0
153
Member Avatar for Ravenous Wolf

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

Member Avatar for shruti123
0
243
Member Avatar for jeffreyjs

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 …

Member Avatar for Jaiam
0
182
Member Avatar for srvstv.prnc

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

1
196
Member Avatar for alpe gulay

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.

-2
268
Member Avatar for shockwave_05

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

Member Avatar for chingkoysilog
0
2K
Member Avatar for mdew_47

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 …

Member Avatar for devpiyu
0
294
Member Avatar for Xessa
Member Avatar for _Rosie_

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 …

Member Avatar for stultuske
0
131
Member Avatar for christiangirl

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

Member Avatar for christiangirl
0
138
Member Avatar for tygerberg
Member Avatar for stultuske
0
160
Member Avatar for deathwishgenius

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 …

Member Avatar for deathwishgenius
0
135
Member Avatar for tkjr4160

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

Member Avatar for tkjr4160
0
120
Member Avatar for weinyeong

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'.

Member Avatar for stultuske
0
121
Member Avatar for freaky.pandit

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

Member Avatar for verruckt24
-1
129
Member Avatar for campuzcrazyness

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

Member Avatar for stultuske
0
428
Member Avatar for Tizzie

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

Member Avatar for stultuske
0
151
Member Avatar for kjetil4

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 …

Member Avatar for kjetil4
0
633
Member Avatar for koolhoney07

and since you're working with String-objects, make sure they're valid numeric values before you try to compare them :)

Member Avatar for verruckt24
0
2K
Member Avatar for enitsirc

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

Member Avatar for stultuske
0
238
Member Avatar for Caled

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

Member Avatar for stultuske
-1
443
Member Avatar for damu
Member Avatar for rameshrajamani
0
140
Member Avatar for EJD

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

Member Avatar for llemes4011
0
111
Member Avatar for karthikRaju
Member Avatar for radar2009

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

Member Avatar for stultuske
0
192
Member Avatar for kjetil4

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 …

Member Avatar for kjetil4
0
618
Member Avatar for sannidhikumar99

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?

Member Avatar for stultuske
-1
131
Member Avatar for onyxmethod123

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

Member Avatar for stultuske
0
66
Member Avatar for PhiberOptik

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 …

Member Avatar for PhiberOptik
0
66
Member Avatar for Narayan15

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

Member Avatar for stultuske
-1
220
Member Avatar for PhiberOptik

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 …

Member Avatar for stultuske
0
74
Member Avatar for milhouse79

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

Member Avatar for stultuske
0
82
Member Avatar for ppp83

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

Member Avatar for stephen84s
0
152
Member Avatar for hidash_in

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

Member Avatar for stultuske
0
123
Member Avatar for milgo

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

Member Avatar for Ezzaral
-1
123
Member Avatar for mona515

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 …

Member Avatar for notuserfriendly
0
84
Member Avatar for shahab.burki

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

Member Avatar for stultuske
0
145

The End.