4,084 Posted Topics

Member Avatar for Decode098

and how exactly you want us to help with this? you are showing bits and pieces of code, without mentioning what they are (supposed to do). for instance: what is this Prog variable? and why would you want to do this: `catch (InterruptedException ie){}` check [this](http://stackoverflow.com/questions/11918384/getting-my-jprogressbar-to-run-on-a-timer-from-1-to-100) for an example of …

Member Avatar for stultuske
0
272
Member Avatar for xfinity.Ace

doubt that's even a complete assignment. I see no reference to a 'pin' anywhere in there.

Member Avatar for stultuske
0
210
Member Avatar for SK33

you wrote the class, yet you don't understand what you wrote? then how exactly did you write it, or how, for that matter? myFarm is an array of object of Farm class ... makes very little (if any) sense to me, and it doesn't seem to be so by your …

Member Avatar for raj.mscking
0
188
Member Avatar for Dinesh_9

I would also suggest adding some "close();" statements here and there. have you tried to debug the application? does that method in your servlet actually call what you think it does, and does it passes the if statements you think it does?

Member Avatar for Dinesh_9
0
1K
Member Avatar for Dean_Grobler
Member Avatar for mateusz.baran1

firstly, remove all your java code from your jsp file and put it in a servlet, it'll make it a lot easier to read/maintain. your problem is that you are trying to use the connection after you've closed it. it's a bit the same as stepping through a wooden door …

Member Avatar for stultuske
0
185
Member Avatar for amir4g

first working item, replace your awt code by Swing code. not entirely sure about your drawing logic, neither. seems to me if you increase the sizes in your one loop, you should decrease them in the other.

Member Avatar for stultuske
0
982
Member Avatar for ganges

we know nothing of your system, nor your configuration... how do you expect us to magically fix the problem?

Member Avatar for ganges
0
4K
Member Avatar for Rajveer456

and stop giving all your Threads the title 'Core Java Tutorial Point'. they say nothing at all about the thread, or what it is you are asking about. your title should show a first hint of what the thread is about, not the name of the blog you are trying …

Member Avatar for stultuske
0
70
Member Avatar for Sifiso21031085
Re: java

this is like asking: what's the difference between a Volvo and a BMW. they're both IDE'S (cars), but they have their internal differences. JCreator is a lightweight IDE, very good for a beginner who has got the hang of the basics, but when going professional, you'll want to step over …

Member Avatar for Sifiso21031085
0
93
Member Avatar for Rajveer456

it's incomplete, badly structured, badly (some places even wrong) explained and a re-invention of the wheel. (only it looks like this wheel is rather square than round). it offers very little information, and for those just starting, not nearly enough. I applaud people who do the effort to help people …

Member Avatar for stultuske
0
121
Member Avatar for ParPau
Member Avatar for ParPau
0
280
Member Avatar for sankubha

you need to get 'printed documents name' ... you plan to wave a printed sheet in front of your monitor, expecting the name will be magically ready by your pc?

Member Avatar for sankubha
0
221
Member Avatar for MatthewYeend

and what's your point? we have no idea what your game 'doubles' is supposed to do, so we can't even verify that what you are doing so far is correct. we also don't know what it is you don't have yet, or what is stopping you from writing that code. …

Member Avatar for stultuske
0
346
Member Avatar for Stefce

use an instance of Scanner to read a line of Strings, and use these to choose between/perform your next actions.

Member Avatar for stultuske
0
229
Member Avatar for Xabush

ehm ... not to sound negative, but those "advanced features", multithreading, gui (swing), ... are not advanced, they are basic. so is jdbc, by the way. without knowing what your level is, it's pretty hard to give advice, but the sticky threads on top of this Java forum are worth …

Member Avatar for C-Money
0
234
Member Avatar for garyndeborah.kuhre

sometimes existing code is repeated in several methods. that can be turned into a separate method, which is called where it is currently repeated. simple refactoring, or adding some basic methods: equals, toString, hashcode, ...

Member Avatar for C-Money
0
286
Member Avatar for firepower

there is no such thing as "a good java eclipse tutorial". you should learn the language independent of an IDE. check the sticky threads on top of this forum for good starting points.

Member Avatar for C-Money
0
218
Member Avatar for mr.sweetchuck

what you could have done is start your own thread, since this is: a. not the same issue b. a 6 year old dead thread, that shouldn't have been revived. what on earth is that int doing in that method call? anyway, check [this](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html) to find out what options you …

Member Avatar for stultuske
0
6K
Member Avatar for msolomon.ashish
Member Avatar for msolomon.ashish
0
4K
Member Avatar for mukulnimker7751
Member Avatar for JamesCherrill
0
369
Member Avatar for obscurecoder

considering the fact that the OP hasn't visited the Daniweb fora for over three years, I'm pretty sure he won't come back to read this update. pretty pointless to add it and revive the thread.

Member Avatar for stultuske
0
192
Member Avatar for Varunkrishna

Varunkrishna: that's not at all what he said. what he says is: even if your code is perfect, there are always other variables that might be less than perfect, and cause problems. for instance: a ton of bugs you might get, are just pebkac/pebcak errors.

Member Avatar for stultuske
0
239
Member Avatar for Sifiso21031085

what do you think about non-electronic electoral voting? is that trustworthy?

Member Avatar for mike_2000_17
0
595
Member Avatar for lrw0831
Member Avatar for stultuske
0
1K
Member Avatar for PulsarScript

you do "the" project about seafishing from "the" boat. what project? what boat? are we supposed to mean what you are talking about? have you tried [this](http://bit.ly/1ek0wNX)?

Member Avatar for stultuske
0
159
Member Avatar for pwolf

there is always some refactoring you can do. for instance: if (cardValid == true){ // your code } is exactly the same as if (cardValid){ // your code } the if statement expects a statement that returns either true or false as argument. a boolean already does that on itself. …

Member Avatar for pwolf
0
347
Member Avatar for Faba

ehm ... are you asking for info regarding autism, or are you offering said information?

Member Avatar for Faba
0
73
Member Avatar for pekemp23
Member Avatar for syasya

what is it you don't know how to do? adding the numbers up? calculating an average?

Member Avatar for Alberto Bucur
-1
155
Member Avatar for firepower
Member Avatar for Xabush

and especially if it's the one implemented in NetBeans. the code is hard to read, and, unfortunately, very irritating to maintain/update without introducing regression bugs. This makes NetBeans Swing code a bad idea when you're talking about a: a professional project b: a UI that might ever need to be …

Member Avatar for mKorbel
0
289
Member Avatar for oooooo1

honestly, I don't entirely understand what you are trying to do. but besides that: what is your actual question?

Member Avatar for oooooo1
0
135
Member Avatar for help distressed
Member Avatar for alyssa.wilkins.77

based on your description, this is a class covering the basics of the basics of the basics. I assume you are able to work a bit with paint shop pro, photoshop, or any of those. it's basically 'create, copy, paste' and you have your logo on your banners. since usually …

Member Avatar for jayshri.shah.10_1
0
460
Member Avatar for anku83

help you with what exactly? seems to me you 've got it figured out. all that remains now is to write the actual java code.

Member Avatar for stultuske
0
632
Member Avatar for debasisdas
Member Avatar for James_28
8
17K
Member Avatar for anku83

keep an array of booleans, with the same indexes. if sum > 5 -> set to true. later on: if indexes[i] -> show columnNames[i]

Member Avatar for stultuske
0
244
Member Avatar for pwolf

saying what the errors are might help us out a bit. personally, I wouldn't see them as enums, rather as different implementations of a shared interface.

Member Avatar for JamesCherrill
0
345
Member Avatar for jackjuma12
Re: JSP

my advice: learn to use servlets before you try and add a database in the mix. your code 'll become unreadable otherwise. also: with what part are you having trouble? is there an error? are you just stuck somewhere on the logic? ...

Member Avatar for stultuske
0
165
Member Avatar for beauty.is.raven

whether it is homework, just work, a promise to your mum or just some doodlin' about, trying to learn how to write code, you won't learn anything by copy pasting code we write. just try and write it, and if (or when) it would fail, post your code here, with …

Member Avatar for jwenting
0
404
Member Avatar for firepower
Member Avatar for humorousone
Member Avatar for humorousone
0
423
Member Avatar for firepower

the value you 'expect'? what exactly do you think assertEquals is supposed to do?

Member Avatar for firepower
0
67
Member Avatar for anand01
Member Avatar for nyepoypo
Member Avatar for chan6212

two points: you may be a bit more specific (about what it is you want and what it is you've tried so far) you may also consider posting this question in the [jsp forum](http://www.daniweb.com/web-development/jsp/24).

Member Avatar for stultuske
0
2K
Member Avatar for asif49

that depends on how you want to develop, and usually the right choice for one project, isn't the right choice for another project.

Member Avatar for JamesCherrill
0
142
Member Avatar for MistaGeorge

the System.out.print(ln) statements will, when received an object as parameter, call the toString method of that object. the result you see is what you get when the object you try to print's type hasn't provided an implementation of toString, but uses that of the Object class. just provide a toString …

Member Avatar for MistaGeorge
0
429
Member Avatar for anestistsoukalis

you mean to find all words that have only letters in your Scrabble letters? well, you can read your textfile in a collection. then write an algorithm that checks for each word, for how much of the letters you have, there is an occurence, for instance, "app" would give 3 …

Member Avatar for iamthwee
0
221

The End.