5,727 Posted Topics
Re: 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 … | |
Re: if you consider that intermediate topics, I wonder what you consider the basics... | |
Re: 890.000 homework kiddos dumped their homework assignments and never posted again after being either ignored or told where to stuff it. | |
Re: What you might want to do is install something like Python or Ruby and write your scripts in that. No need for compilers. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: how? By reading the documentation, thinking, then sitting down and writing something. It's really that simple. | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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? | |
Re: 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 … | |
Re: [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? | |
Re: [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. | |
Re: 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 … | |
Re: yup, to the eternal regret of people doomed to work with their results. | |
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 … | |
Re: the compiler takes care of that for you. See the documentation on how to invoke it. | |
Re: 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 … | |
Re: actually, it prints the first 102 prime numbers (if it works at all)... | |
Re: 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 … | |
Re: Well, blatant advertising for Firefox shouldn't be in the IE forum either as it has nothing to do with IE :cheesy: | |
Re: 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 … | |
Re: 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 … | |
Re: Another homework assignment... Don't help those kids, they have to do it themselves. | |
Re: Google refuses to be connected with Yahoo I guess ;) | |
Re: 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. | |
Re: not urgent. And had you used proper coding techniques instead of scriptlets you'd never had had this problem in the first place. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: apparently the kind of site someone with a reported IQ of 84.6 is proud to report as giving him that score :) | |
Re: [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! | |
Re: 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? ;) | |
Re: 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 … | |
Re: "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" | |
Re: 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. | |
Re: notifyAll() will cause only 1 thread (at most) to start to run. | |
Re: According to her profile she's a gal. Either that or the photo shows someone else :) | |
Re: 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. | |
Re: 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. | |
Re: Check the docs again, they also say there's no guarantee the size will take effect. | |
Re: [QUOTE=BestJewSinceJC;1186317]I already gave you step by step directions. What didn't you understand?[/QUOTE] he needs zuh koduz asap! :( | |
Re: it's a conspiracy to make you think you're a conspiracy theorist when really you're not but well in touch with reality! | |
Re: tough luck. This has nothing to do with JSP so don't expect an answer here. |
The End.