5,727 Posted Topics

Member Avatar for java_programmer

don't use Vector unless you have to and remember that you don't have to unless you've no other option (like it's a required argument to some method). That's all you need to know.

Member Avatar for BestJewSinceJC
0
121
Member Avatar for kgkamaraj

there's an entire internet full of documents out there, and you're too lazy to go out and find a few to use?

Member Avatar for kgkamaraj
0
124
Member Avatar for henrybahus

don't put business logic in your JSP. Put it in a servlet instead and have that forward to a JSP for rendering the response to the client.

Member Avatar for peter_budo
0
83
Member Avatar for webcare
Member Avatar for manikandan_dani

You so realise there's no way to ensure an email address is real and "valid"? An address entered might be correct according to some rules for some email system but invalid for another. It might be valid for some system but not exist. It might be valid and exist but …

Member Avatar for manikandan_dani
0
111
Member Avatar for Mueni
Member Avatar for TotoTitus

look better. The file format specifications of most if not all major (and many minor) formats are freely available on the internet and not hard to find at all. If you're a reasonably competent programmer (if you're not you have no bussiness even attempting something like this) you should have …

Member Avatar for jwenting
0
87
Member Avatar for Hangfire

So put in a random number generator that decides whether the AI hits or misses. Draw a number between 0 and 1 (most random number generators produce a floating point number). If you want a 50% chance to hit, have it hit if the number drawn is >0.5, if you …

Member Avatar for Hangfire
0
131
Member Avatar for lrh9

Guess what kids, there is no secret whatsoever, no conspiracy, no nothing. The manufacturer uses references to bible sections as part of their serial numbers, nothing more or less. DoD should get the best possible gear for their people irrespective of what some atheists and muslims think. In fact, as …

Member Avatar for jwenting
1
767
Member Avatar for Loretta.Mar2

no, we're not here to do your homework for you. If you have specific questions, you can get specific help. But just dumping your homework assignments here and waiting for someone to do it all for you isn't going to work. It certainly won't teach you anything.

Member Avatar for jwenting
-1
225
Member Avatar for NT.

yup, there's an error compiling your jsp. The server log should contain the actual compiler error, as indicated by the message.

Member Avatar for jwenting
0
113
Member Avatar for elton571
Member Avatar for jwenting
0
149
Member Avatar for ginnyc0802
Member Avatar for jwenting
0
129
Member Avatar for gedas

doesn't do a whole lot... Just loads an image and transforms it into something the computer can display. As you would have figured out easily enough had you bothered to read the documentation for the classes involved.

Member Avatar for jwenting
0
81
Member Avatar for rajarajan2017

possibly. You're likely going to have to write some code to make it work, but no reason that should be impossible.

Member Avatar for jwenting
0
57
Member Avatar for rena0514

[QUOTE=rena0514;1132994]thanx that would mess up the entire program lol[/QUOTE] Well, commected out code won't give compiler errors :)

Member Avatar for jwenting
0
147
Member Avatar for qutejose
Member Avatar for fardoonmuhafiz
-1
91
Member Avatar for Ashish Upadhyay

Even if it were legal (it won't be) it's A Very Bad Thing to do. It's as bad as installing the application server as part of the application installation. The application should set the availability of the application and database servers as an installation requirement, and make use of the …

Member Avatar for jwenting
0
105
Member Avatar for sealxlion

3rd improvement: do away with all those static methods 4th improvement: learn and apply some OO design techniques

Member Avatar for jwenting
0
173
Member Avatar for daniellamae

[QUOTE=lyndon enero;1124453]hi can you give me a simple code of lucky 9 game plz[/QUOTE] No, we don't help homework kiddos. And crossposting homework kiddos who bring back zombie threads from the dead are even worse.

Member Avatar for jwenting
0
681
Member Avatar for gingerfish

nope. You'd have to create your own version that adds that support (or find a version that does).

Member Avatar for jwenting
0
89
Member Avatar for Paladine

While cheap keyboards are available I never recommend them. Cheap keyboards have short MTBF (thus increasing the cost over time of using them) and are uncomfortable (often to the point of being bad for your health) to use (causing RSI). I used to replace my keyboard several times a year, …

Member Avatar for Pointman
0
854
Member Avatar for new programer

research Alexander Graham Bell. He made the biggest breakthrough at all :)

Member Avatar for vegaseat
1
112
Member Avatar for Mushy-pea

[QUOTE=apegram;1119907]"Greenies" is not the preferred nomenclature. Environmentally-Conscious Americans, please.[/QUOTE] No, "greenies" is the correct term. It's a religion, nothing more or less. They're not "environmentally conscious" at all, they just go through the moves of buying their carbon credits in order to feel good.

Member Avatar for jbennet
0
287
Member Avatar for Narue

I'd say that was pretty accurate, except maybe the unhappy part (though he may be unhappy because of his ban) ;) And what's wrong with photography? 4 cameras too much for you (and an option on a 5th)? ;)

Member Avatar for jonsca
2
512
Member Avatar for zigpy_siva

and most of all: security Unless you work for a bank or creditcard company and in the department responsible for such software the best thing to do is to simply forget about it.

Member Avatar for venkyv
0
105
Member Avatar for eldhoksuresh

use a binary format. Text is way too cumbersome for what you're trying to do. And you will want to have a separate file per table most likely, probably more files for indexing and stuff like that.

Member Avatar for jwenting
-1
112
Member Avatar for iamsmooth

Or you could pipe the output to a file and use some tool to analyse that file after you're done running the application. No modifications of your application code needed that way.

Member Avatar for jwenting
0
1K
Member Avatar for eldhoksuresh

Got to wonder how you're trying to create that file... I've created applications that have in time created millions of files, never had that happen.

Member Avatar for jwenting
0
73
Member Avatar for alcay

[QUOTE=alcay;1126489]so what do i do to start?[/QUOTE] go to school and get an education.

Member Avatar for TheGhost
-2
279
Member Avatar for mrnutty

[QUOTE=Narue;1115793][B]>Averagely speaking, I doubt that a person without skills at say >playing basketball, would put hard work and dedication to make >it to the NBA[/B] The NBA is very much a young person's arena. Of course you need talent to reach that level before age starts to take effect. I …

Member Avatar for vaultdweller123
0
1K
Member Avatar for timetex
Member Avatar for nufa0550
Member Avatar for houlahan

You're missing a lot here. And without context it's impossible to help you along. Clearly you're lacking in your knowledge of application design, things like patterns and common sense. Your patient will need a field indicating what he's suffering from. Each medical condition will need to be part of some …

Member Avatar for JamesCherrill
0
148
Member Avatar for Salem

[QUOTE=Salem;1123835]If your task was to design a system which was so easy to defraud, then you would be hard pushed to make it better than this. [/QUOTE] UN oil for food program comes to mind?

Member Avatar for jwenting
3
192
Member Avatar for musthafa.aj

[QUOTE=verruckt24;1125634]No, it isn't. It is more of an urban legend. Check the link given by jonsca.[/QUOTE] but something I'd love to do were I a teacher :) I know my old geography teacher had a habit of verifying stories like that, like if you claimed the train was late causing …

Member Avatar for jwenting
3
173
Member Avatar for anurag singla

You do realise that what you want to do is a violation of the law, and that asking for it here is violation of the terms of service of this site?

Member Avatar for Nick Evan
-3
160
Member Avatar for spittballz

[QUOTE=verruckt24;1125878]You have made a lot of syntactical mistakes here. [CODE] if (number % i == 0) return false; else return true; if (false); [/CODE] Do you really think the control will ever reach the line "if (false)" ? Also let's for a moment assume it does, will the control ever …

Member Avatar for jwenting
0
3K
Member Avatar for ainct
Member Avatar for endsamsara

use a hashmap with the words as keys and the counts as values. If you find a word in it, increase the count. If not, add it with a count of 1.

Member Avatar for Ezzaral
0
279
Member Avatar for jaxy
Member Avatar for neelkris
0
2K
Member Avatar for fardoonmuhafiz

Jave in fact does have multiple inheritance. It just doesn't have multiple inheritance of implementations. If Java didn't, classes could not implement more than one interface. And yes, check your attitude.

Member Avatar for verruckt24
-3
147
Member Avatar for Her-o
Member Avatar for vmanes
Member Avatar for jamshid

But don't overdo it. Comments should tell you WHAT the code does, not HOW it does it.

Member Avatar for csharpisatechno
0
25K
Member Avatar for pavansathar

best way would be to use web services or something similar, and have a process on the server retrieve the data. The mobile client asks that process for data, it retrieves it using jdbc, and sends it to the mobile client where it's presented.

Member Avatar for pavansathar
0
108
Member Avatar for vidhun

no, you're looking for a servlet. That servlet may use POI. JSPs should never interact directly with spreadsheets, databases, or any other business data.

Member Avatar for peter_budo
0
105
Member Avatar for lsandling

[QUOTE=Salem;1118428]> this is not homework but rather my work I'm shocked that someone with a programming job can't solve this trivial problem :-O[/QUOTE] I would be if I'd not long ago given up all hope that junior programmers have any skills whatsoever any more. All they seem to be able …

Member Avatar for lsandling
0
118
Member Avatar for javaAddict

That's a job for a servlet, not a jsp. The correct content type is the one registered with bodies like the w3c, not one that someone cooked up in his head because he thought it "sounds kewl".

Member Avatar for javaAddict
1
929
Member Avatar for thekashyap

To use Java: 1) create a stored procedure in the database that schedules a bulk update batch and takes the data to be used as a parameter 2) use Java to call that stored procedure. That's how we do it here to drive bulk inserts through upload of data files …

Member Avatar for jwenting
0
185

The End.