5,727 Posted Topics

Member Avatar for CorruptionInc

cut up the main method into several methods. One to handle input, one for processing it, one for output (maybe, not strictly needed for something this trivial but good practice). In your main, just have an infinite loop that reads input, processes it, and produces output, with a terminating condition …

Member Avatar for CorruptionInc
0
116
Member Avatar for susheelsundar

if you consider that intermediate topics, I wonder what you consider the basics...

Member Avatar for jwenting
0
103
Member Avatar for royng

890.000 homework kiddos dumped their homework assignments and never posted again after being either ignored or told where to stuff it.

Member Avatar for royng
0
167
Member Avatar for AJ_Allmendinger

What you might want to do is install something like Python or Ruby and write your scripts in that. No need for compilers.

Member Avatar for Dundir
0
302
Member Avatar for lse123

Yes and no. You can certainly create something like a progress bar that gets shown on a website which uses JSP as the display technology. But you're not going do it "in JSP". It'll be an AJAX style component.

Member Avatar for lse123
0
80
Member Avatar for stupidbumbum

by typing the source code into an editor, how else? We're NOT here to do your homework for you, and that's what your dumping your assignment here and expecting us to do it amounts to.

Member Avatar for jon.kiparsky
0
91
Member Avatar for sj5536

you won't find that anywhere. For iText, read the manual. Oh, there is none? that's because iText sucks. Use POF or another alternative that does have documentation and can actually be used.

Member Avatar for jwenting
0
65
Member Avatar for jon.kiparsky

I've seen too many hoaxes with this theme to believe them without independent verification. All too often such "pleas for help" are just attempts to trick suckers out of their money.

Member Avatar for jwenting
2
269
Member Avatar for snehalj

In other words, you've lifted a sample from a website without even realising it's not Java. Thus, you've done nothing at all.

Member Avatar for mKorbel
0
98
Member Avatar for snehalj

how? By reading the documentation, thinking, then sitting down and writing something. It's really that simple.

Member Avatar for jwenting
0
317
Member Avatar for cwarn23

[QUOTE=royng;1506272]Which element do you think will destroy earth. I support water since there are a constant flooding and tsunami kept occurring. Japan had lost 10% of its population to natural disaster[/QUOTE] that doesn't destroy the world, as in making it disappear :) Eventually the world will likely be destroyed as …

Member Avatar for GrimJack
2
358
Member Avatar for royng

The Loch Nes monster as described by the "believers" cannot exist. The Loch Nes environment doesn't yield enough nutrients to support a viable population of animals that size (even if they could exist in it undetected, which is in itself a virtual impossibility). Similar factors can be found to discredit …

Member Avatar for royng
0
139
Member Avatar for koduruabhinav

read the product documentation for the Oracle JDBC driver. It'll tell you how to connect. And please don't do this from a JSP. JSP aren't meant for doing business logic, and should never contain Java code.

Member Avatar for jwenting
0
134
Member Avatar for ?finish?

sigh... Despite the tens of thousands of threads by other kids asking us to give them a project idea you still haven't gotten the message?

Member Avatar for jwenting
0
134
Member Avatar for jet101

you mean the client of your web application? There is no Java running there, only Javascript which knows nothing about all that. The only thing you can do is set a cookie, which is automatically handled for you (if possible and needed) by the server based on the content of …

Member Avatar for jet101
0
138
Member Avatar for SCass2010

[QUOTE]ii. But why doesn't your code compile when you try to make and ArrayList of your GUIPropertySquare class? [/QUOTE] Indeed. What exact errors are you getting?

Member Avatar for jon.kiparsky
0
2K
Member Avatar for kukuruku

[CODE]data[2].getLoadCap();[/CODE] should be [CODE]((Truck)data[2]).getLoadCap();[/CODE] as already explained. And of course ideally you'd handle errors doing the casting.

Member Avatar for jwenting
0
353
Member Avatar for khess

The main reason games sales decline is still the ever increasing amount of piracy, now ever more openly condoned by both ISPs and governments with vague laws that state that while providing copyrighted material for download is illegal, downloading and using it is not. Another reason is the ever increasing …

Member Avatar for Heyzaneretro
2
591
Member Avatar for CornerAnalyst
Member Avatar for peter_budo
0
87
Member Avatar for jwenting

Validation whether a string can be parsed to a valid date according to a supplied formatting string (which should conform to the formatting rules as supplied in DateFormat). This version can also flag dates in the past as error (we need that because many of our applications should accept only …

Member Avatar for javaAddict
0
258
Member Avatar for muthuivs

the compiler takes care of that for you. See the documentation on how to invoke it.

Member Avatar for raj.patel301
0
572
Member Avatar for jake1496

There is no "best", nor can there be. Not only don't you supply any criteria to use in defining "best" that can be scientifically measured, you don't know all games out there so can't even apply those criteria to every game in existence in order to see how well it …

Member Avatar for davidlouis88
-8
863
Member Avatar for jips11in
Member Avatar for masijade
0
159
Member Avatar for thadani

Kaspersky is an excellent product. I switched to it (corporate license, sometimes it pays to work for a reseller ;)) when my license for Panda expired and their support department were completely deaf to support requests getting my account reactivated (after paying of course, they still didn't respond...). Use it …

Member Avatar for SARUBA
0
776
Member Avatar for Catweazle

Well, blatant advertising for Firefox shouldn't be in the IE forum either as it has nothing to do with IE :cheesy:

Member Avatar for Rik_
4
2K
Member Avatar for sneekula

humanity will burrow itself in red tape and drown in a sea of bureaucracy, which will make it impossible to do anything without filling out elaborate forms and waiting years for permission to do even something as basic as reproduce. Those who do not give up living at that stage …

Member Avatar for bumsfeld
2
935
Member Avatar for jcmartin

I'll be brutally honest with you: you don't stand a chance. Most companies won't hire anyone without experience when they're over say 25 years old. Too expensive. And by the time you get your degree, you'll be 35+, at that age it's hard to get any job in IT at …

Member Avatar for rbross
0
309
Member Avatar for Poonam Mehta

Another homework assignment... Don't help those kids, they have to do it themselves.

Member Avatar for chadz mutia
0
143
Member Avatar for rpjanaka
Member Avatar for RaySan

seems to be a new hobby, creating forum account, reviving useless ancient threads (usually with nonsense information), and disappearing. I've been seeing it a lot lately both here and elsewhere.

Member Avatar for masijade
0
475
Member Avatar for Jemo2008

not urgent. And had you used proper coding techniques instead of scriptlets you'd never had had this problem in the first place.

Member Avatar for ~s.o.s~
0
502
Member Avatar for Anupkumar
Member Avatar for ms88

Or write a Java program that runs constantly and can communicate in some way (probably through SOAP) with your PHP application and use that as middleware. But indeed, moving to a JSP/Servlet environment is the best option by far.

Member Avatar for mdew_47
-1
907
Member Avatar for xxunknown321

no, it does not meet the requirements. Not only does it not do anything like that the requirements state, but no code that doesn't even compile should ever be good enough to meet requirements.

Member Avatar for ProgrammerAl
0
368
Member Avatar for ~s.o.s~

too shy to talk to women in the wild, and the domesticated kind I have as colleagues are all married or engaged (sometimes to other colleagues). And before I encountered such domesticated females it was simply too expensive to search them out, even had I dared to.

Member Avatar for Borzoi
0
726
Member Avatar for The Dude

apparently the kind of site someone with a reported IQ of 84.6 is proud to report as giving him that score :)

Member Avatar for The Dude
-1
127
Member Avatar for rommelgenlight

[QUOTE=debasisdas;1199690]Go for Oracle , version 10g supports 8 million terabytes. I think that would be enough for all your data.[/QUOTE] yah, but iz no free to download from p2p network!

Member Avatar for Ancient Dragon
0
361
Member Avatar for NotThereAnymore

that's not the only thing it's telling you ;) Anyway, why go to all that trouble to reverse a String when you can do it with a single line of code? Sheesh, can't teachers ever come up with realistic assignments? ;)

Member Avatar for aspire1
0
586
Member Avatar for christina>you

I doubt the Netherlands rank highly in mathematical skill among the general population. Sure kids get high grades in school but that's because our school system is fundamentally broken and grades are doctored to keep the percentage of failing kids artificially low (schools get paid per pupil, so they don't …

Member Avatar for Future_Dictator
0
1K
Member Avatar for janakijanu

"why kiddos can't think for themselves" "why kiddos are too lazy to do their own homework" "why I spend all my time playing games instead of studying"

Member Avatar for eliezahorre
-1
121
Member Avatar for sam1

Could come in handy as an optional feature, some sort of administrative console. But always provide a means to run a server on a headless machine.

Member Avatar for Arul412
0
213
Member Avatar for George2
Member Avatar for anand.g
0
185
Member Avatar for ritcherjd

According to her profile she's a gal. Either that or the photo shows someone else :)

Member Avatar for angelique28
0
1K
Member Avatar for rony

I'm not going to read a thousand lines of unformated code. Use code tags and post only the relevant bits. Most likely you never attached the code that shows the message to the component where you want it shown.

Member Avatar for javaAddict
0
759
Member Avatar for soteri0s

Java lacks the low level operating system hooks to do this, and that's by design. You'd need to use JNI or JNA to do the actual sneaky stuff and pass that information to a Java process.

Member Avatar for peter_budo
0
239
Member Avatar for it2051229

Check the docs again, they also say there's no guarantee the size will take effect.

Member Avatar for rincethomas33
0
160
Member Avatar for The Dude
Member Avatar for peterwalter

[QUOTE=BestJewSinceJC;1186317]I already gave you step by step directions. What didn't you understand?[/QUOTE] he needs zuh koduz asap! :(

Member Avatar for helpmehelpme
0
254
Member Avatar for The Dude

it's a conspiracy to make you think you're a conspiracy theorist when really you're not but well in touch with reality!

Member Avatar for The Dude
0
140
Member Avatar for sanju21

tough luck. This has nothing to do with JSP so don't expect an answer here.

Member Avatar for toughlittleone
0
782

The End.