4,084 Posted Topics

Member Avatar for soujanya.bhat.184

have you already solved it? if not, why did you mark it solved? I assume you know how to get the contents from the JList, so your problem must lie in the writing to the txt file part. [this](http://docs.oracle.com/javase/tutorial/essential/io/) is a good place to start reading up on that.

Member Avatar for stultuske
0
285
Member Avatar for abeer araji

abeer_araji: that is not a Java problem, that is an assignment. the problem I see is that you didn't even try to write the code yourself. now, looks like hakeemtunde wants to help you cheat your way through school. just a few remarks about it: 1. you won't learn squat …

Member Avatar for stultuske
-1
176
Member Avatar for moaz.amin.37

now I don't follow .... what does an applet need a main method for? anyway, stop what you're doing, because you are heading in the wrong direction. class RunDemo{ void getParam(Run.x) { //Do Something.......... } } this is not correct. either you know up front that it will always use …

Member Avatar for stultuske
0
218
Member Avatar for quontra123

actually: having a head with a working brain in it is sufficient. a lot of courses start of with a part theoretic knowledge: 1. OOP 2. syntax 3. some basics and when they come to actual programming, they start of with: "take a piece of paper and a pen and …

Member Avatar for happygeek
-2
117
Member Avatar for firozkiet

downloadMethod(){ ifNotFileExist(){ createExcellFile(); } // perform actual download }

Member Avatar for stultuske
0
112
Member Avatar for asaidi

your question makes little to no sense. either you don't need the jcombobox, and should just remove it, or you need them both. at that point there are two options: 1. they are on different components, so, you'll just navigate from one frame (or panel) to another 2. they are …

Member Avatar for mKorbel
0
190
Member Avatar for dami06

Hi Sravani Kunam, welcome to daniweb. a few do's and don'ts, though: DON't hijack dead threads DO create your own thread for your questions DON't copy paste your assignment here, expecting us to deliver custom made code DO show some effort. what have you got so far and what are …

Member Avatar for stultuske
0
176
Member Avatar for moaz.amin.37

also realize: Swing is not a "package" it's a FrameWork. but, one good advice, if you truly want to learn Swing development: do NOT use any code generators or UI builders like the one NetBeans offers (even if it is shown in the official tutorials of Oracle). writing a decent …

Member Avatar for stultuske
0
352
Member Avatar for TERRIOUS

even better yet, do NOT go to http://www.tutorialspoint.com/java/index.htm . if you want to learn a programming language, stay up to date. don't stay with not or half updated tutorial pages". why I think it's not entirely up to date? just check the "Java-Overview" page. I'll quote a bit. > As …

Member Avatar for iConqueror
-2
358
Member Avatar for TonSingle

hate to tell you, but even the first line of the code you posted wouldn't compile. you need to end it with a ';', not a ','. also, this: `}catch(IOException evt){JOptionPane.showMessageDialog(null," Error ");}` even though not the worst, not far from it. Ok, you know an exception got thrown. but …

Member Avatar for mKorbel
0
109
Member Avatar for Netherblood

in CaseOne you don't change anything in an existing GUI, you just create a new one. but in my opinion, you're going way to far on this. try adding a setter (setFrameIcon(Icon (or Image) ... )) method to your gui, and call that from the other class. in your case …

Member Avatar for mKorbel
0
312
Member Avatar for laguardian

"what the errors are about" ... which errors do you mean? public static void printSelf(){ System.out.println("Name: " +name); System.out.println("Age: " +age); System.out.println("Gender: " +gender); System.out.println("Email: " +email); } in the scope of this method, the variables name, age, gender and email are not known. pass a parameter that is an …

Member Avatar for stultuske
0
132
Member Avatar for Pyler

most likely, there's some configuration in an .init file (or another eclipse config file) that still points to the previous path of the Android SDK. but how did you "move" the SDK? just copy paste? at that point, each file that links or has a path to that SDK becomes …

Member Avatar for peter_budo
0
322
Member Avatar for karthick_pmk

several ways: 1. don't store duplicate values in the original array. 2. keep a String (or a set or a list or a .... ) if you reach the else block, check if that String(/set/list/...) already contains the letter. if it does, skip the rest. otherwise, print it and add …

Member Avatar for karthick_pmk
0
342
Member Avatar for Usman_7

Usman: this is not a "coders on demand" forum. if you want that software, write it. if you get stuck, let us know with what, and we'll try to help you.

Member Avatar for Usman_7
0
279
Member Avatar for Adami

> For some unknown reasonable reason, I get an error for the static method call this is very normal. in a static context, you don't always have an instance, so you can't just call an instance method. public static boolean match(int[] a , int[] pattern) { //need to use the …

Member Avatar for Adami
0
3K
Member Avatar for eluciveLu

you should start a new thread for a new question. you should also realize that 'a folder' is a part of the file system, not of the layout of a webpage. you'll need to be more specific about what exactly you're trying to do.

Member Avatar for stultuske
0
2K
Member Avatar for CreeperFace22

I see no ImageIO class, and I see no import for an ImageIO class. that might be the problem.

Member Avatar for stultuske
0
295
Member Avatar for Slavi

[this](http://stackoverflow.com/questions/16458564/convert-string-to-ascii-value-in-java) might answer some of those questions.

Member Avatar for Slavi
0
181
Member Avatar for nicemedo1

> It's a pretty complex program. sounds like a genuine Java teacher allright .... Mussdroid: a few remarks: don't just send links with ready made code (especially if they a. don't do what the OP ask b. contain basic flaws, like by default having the main method throw an Exception) …

Member Avatar for stultuske
-2
1K
Member Avatar for bharatgs7

ehm, sure. but a few remarks. this is a webapp, so it'll only be on your c drive while developing, after that, it should be on a server. you should also make sure your images are as compressed as possible. what kind of images do you have in your application, …

Member Avatar for Hemanth Malli
0
138
Member Avatar for Radhijavadev

you have two closing brackets on your doGet method. remove the second one, and you'll have less errors. I haven't checked every single bracket pair to see if there are some other places where you have missing/extra brackets, but if you indent your code, and re-check it, if need be …

Member Avatar for stultuske
0
289
Member Avatar for kimmgillie

the best thing to do, is re-read the first chapter(s) of your textbook or course notes.

Member Avatar for Hiroshe
0
198
Member Avatar for rowen_1

create an enum, which has the value of a char as value. add the nr (of order) as a field field, use this to compare them

Member Avatar for rowen_1
0
166
Member Avatar for anita_2
Member Avatar for stultuske
-2
83
Member Avatar for SpottyBlue

that is because you don't remove the names already linked from the list to choose from. for (i=0; i<5; i++) { System.out.println(bName[(int)(Math.random()*5)] +" and "+ gName[(int)(Math.random()*5)]); } for all you know, the random returns exactly the same each time. since you didn't remove the name after having matched it, it …

Member Avatar for JamesCherrill
0
300
Member Avatar for Slavi

> it does compile without errors for the server side ... but I am not sure about 1 thing .. you do understand that mentioning what it is you have doubts about, might help us help you, right?

Member Avatar for Slavi
0
422
Member Avatar for stephen.teacher

you don't need to create a new instance of Scanner each time you read a value, that's just a waste of resources. do{ //printPlayRing(); //printBrig(); if(!gameOver()){ System.out.println(""); System.out.println("game not over Who got captured?"); Scanner caught=new Scanner(System.in); String check = caught.nextLine(); if(playRingContains(check)){ System.out.println("playRing contains"+check); } } }while(playRing.root.nextNode!=playRing.root); I might be missing …

Member Avatar for stephen.teacher
0
222
Member Avatar for shadowsrose1
Member Avatar for JamesCherrill
0
3K
Member Avatar for Slavi

the problem is, it can't find the resource you're trying to use. it's a NullPointerException. this is not related to the .jar, to the manifest file or anything. the .jar file runs just fine, if it wouldn't, it wouldn't print this: > The word is trap and the hint is …

Member Avatar for Slavi
0
520
Member Avatar for madhatter777

can you specify the 'not working' part a bit more? what is 'not working' ? does it compile? do you get compile time errors? does it run? are run time exceptions thrown? do you get a stacktrace? do you get an unexpected result?

Member Avatar for Taywin
0
174
Member Avatar for hamdaalblooshi

correcting what? does it compile? does it run? does it present a stacktrace? does it give unexpected results? .... ? don't just copy paste some code without an explanation saying "solve the problems". we don't know what the progrem is supposed to do, so what can we tell?

Member Avatar for stultuske
0
237
Member Avatar for moaz.amin.37

first of all: java doesn't have functions, it has methods. yes, there is a difference. the main method has to be static, since it is the entry point of the application, the very first thing that runs. if it wasn't static, you would need an instance of the class to …

Member Avatar for stultuske
0
314
Member Avatar for laguardian

NopeForever, no, that doesn't help. array[j] doesn't print the index, it prints the value. `System.out.println(" " + num + " is in index "+ j);` should do the trick.

Member Avatar for laguardian
1
242
Member Avatar for moaz.amin.37

this 'll cause trouble, though `Ruu obj=new Run();` typo's in code is the easiest way to get it to crash during compilation

Member Avatar for moaz.amin.37
0
170
Member Avatar for Slavi

keep in mind that on systems you want to use it as a 'click' executable, you'll need to have both 1. the jre installed (in order for it to run) 2. the environment settings of the os set, so the os knows how to handle the .jar file and it's …

Member Avatar for stultuske
0
186
Member Avatar for beqa2323

first answer that comes to mind: "surely worth 5 seconds of Googling". check [this](http://docs.oracle.com/javase/tutorial/collections/)

Member Avatar for stultuske
0
64
Member Avatar for Zachary_1

why your code don't run ... how do you know it doesn't run? does it compile? do you get a compile time exception? do you get a run time exception? does it seem to do nothing? might be stuck in an infinite loop somewhere. did you debug your code? also: …

Member Avatar for JamesCherrill
0
1K
Member Avatar for hemp31

step 1 write an analysis step 2 define objects/methods (based on the analysis) step 3 define test-cases step 4 write unit tests step 5 implement the code step 6 unit test what you've written step 7 correct any errors against the unit tests that may occur and repeat steps 6 …

Member Avatar for stultuske
0
278
Member Avatar for soche123

instead of this: `letter2=letter2+"a";` do something like: `letter2=letter2+aTextField.getText();`

Member Avatar for mKorbel
0
162
Member Avatar for Vegito1991

you have code like this: catch (Exception ex) { } this: catch (Exception ex) { chatTextArea.append("Message was not sent. \n"); } and this: catch (Exception ex) { System.err.println("Error telling everyone."); } I'm not surprised you're having trouble finding all the things going wrong. always make sure to log what is …

Member Avatar for stultuske
0
2K
Member Avatar for moaz.amin.37
Member Avatar for stultuske
0
517
Member Avatar for edygraca

using polymorphism usually doesn't replace the if's/else statements. just the code within the if/else blocks would be different.

Member Avatar for JamesCherrill
0
176
Member Avatar for shivakr

for jsp related material, you should post in [this forum](http://www.daniweb.com/web-development/jsp/24) also, provide some more information. just that one line might get you a response, but the more information you can provide us with, the bigger the chance of us finding the correct issue.

Member Avatar for peter_budo
0
245
Member Avatar for ShadowFox88
Member Avatar for rnjreddy

if you know the logic, you should be able to figure out how to code it. that's the entire point. what step(s) are you actually struggling with, how did you try to implement it and what is it doing (wrong)?

Member Avatar for rnjreddy
0
134
Member Avatar for dhani09

you may want to check those websites, just to see which language they're written in, and what framework(s) they use. are you trying to do this purely using javascript?

Member Avatar for dhani09
0
163
Member Avatar for nouth
Member Avatar for GRENDY

also: saying that you "have a question about it" will not help you find an answer just as fast as stating what the actual question is.

Member Avatar for stultuske
0
156
Member Avatar for ckide

e-Books are easier to update, but in the end, I want to be able to read my book, even when my tablet/... crashed.

Member Avatar for hericles
0
377

The End.