5,727 Posted Topics
Re: [QUOTE=Panarchy;456957]Do you know where I can find the code, already working? [/quote] yes, in fact I wrote one (or rather contributed to one). The same one now used by among others Sun and Novell for their websites. [QUOTE=Panarchy;456957] I am looking for a backend that I can edit (open source) … | |
Re: If that person gave up, make sure to let your instructor know that. He or she deserves no credits for your work. | |
Re: System.exit(1) indicates abnormal program termination (crash, error). Normal termination is indicated by exit code 0. | |
Re: Java isn't designed for accessing lowlevel operating system functions like that. You may be able to using JNI to call the required operating system functions for the operating system you have in mind, but it's better to use C (for example) for things like that. | |
Re: and why use public static fields at all? They're THE worst thing to use in Object Oriented programming, a clear sign that the programmer didn't know the first thing about what she was doing. | |
Re: And no, there is no site where you can download complete solutions to your homework assignments. Or if there is it's not in anyone's interest to give you the location for it. | |
Re: yep. WebLogic docpacks make great monitor stands (I know from experience). | |
Re: you didn't add the jar to your project... The system classpath is not something you normally should use, as most tools will simply ignore it. Set a classpath for each JVM you start as you start it. | |
Re: Just one, which I use mainly for online purchases and gas (which is reimbursed by my employer at the end of the month, so why pay for it in advance :) ). For online purchases, a CC is almost a requirement. PayPal is unreliable (they're fraudsters), IMOs are slow and … | |
Re: And define "not the same". What are you going to use as criteria? Names only? Sizes too? Or the actual content (and if that, how strict are you going to be? If they're 2 text files that differ only in whitespace, do you consider them the same or not?)? Get … | |
Re: well, 3 strikes you're out. That's the law of the land, and it's working to put repeat offenders away for a long time. If it deters a few kids from going into crime as a career it's worth it. After all, "it's all for the kids" so it must be … | |
Re: That's the problem when you pull code from some website or book and submit it as your own... You learn nothing from it. Learn to make your own code, learn to understand the code of others. | |
Re: [QUOTE=jasimp;446448]Can conservatives do anything accept bash liberals?[/QUOTE] I'm so sorry you consider pointing out the truth "bashing liberals". | |
Re: the moment it is sent to that person it is by definition no longer a secret... | |
Re: hmm, we're going to have a weekly "Jav iz ded" thread here as well? Was kinda missing it, every other Java related site has one and has had one for as long as Java has been in existence. | |
Re: nope, never seen it. Sounds like the installer didn't complete normally. Uninstall and try again. | |
Re: Nor can we know how your "LinkList" class works. The standard LinkedList class has a very nice addAll method to add all elements from one List to another. If your "LinkList" (stupid idea, never reimplement something available in the standard libraries) implements List it would have such a method too. | |
Re: don't. BGI is ancient, non-portable, unsupported, etc. etc. etc. And if you didn't know that yet you have no business writing games (or indeed any complex software). | |
Re: my computers never get turned off, the powersurge when booting them accounts for several hours of keeping them running, and the increased wear and tear on components due to booting and shutting down as compared to keeping them running would degrade their lifespan seriously enough that any "savings" are undone. … | |
Re: no, we're not going to do that. Not only is it impossible, it's not our job to do your homework. | |
Re: Tomcat comes with tutorials. So does the JEE SDK. There's also tons of tutorials (of highly variable quality) scattered around the web. And every decent bookstore has a shelf of books to choose from. | |
Re: and why do this in Java? It's purely structural programming, far more suited to Pascal or C. | |
Re: "how can I get a house number if I know the streetname?" In other words, you're not going to do that.The port number is a part of the address, without the address you're not going to get anywhere. While you could try every possible port and see what happens, that's … | |
Re: you are not creating a compiler, you're creating a program that tries to call a compiler someone else created. The reason your output is not retained is likely because you're launching another process which under Windows means another command shell, which gets closed as soon as that process completes. And … | |
Re: Static is just that, by definition it's shared between all instances of a class. A method can have final variables, which may be what you're looking for. These are however rarely used, mainly to preserve variables which are of interest to method local anonymous inner classes. Personally in a decade … | |
Re: When you turn on a radio or TV in a store or restaurant for the customers to see/hear you need to pay royalty fees. That's the case in most countries and has been for ages. That officially even extends to organising a movie session for your colleagues in the office, … | |
Re: you can't control that. If you set the mime type correctly the browser will open it whichever way it can, if you don't it will prompt you to save it. Of course if you don't use an iComputer you won't have an iBrowser either, problem solved. | |
Re: The "search button in Google" just generates an http request to Google. That's easy to mimmick, just figure out how those request URLs are created and send one using a HttpURLConnection. | |
Re: What you have here is proof that not everyone is going to play nice with "standards". Apparently Prentice Hall either miscalculated the ISBN for the book or simply don't care. btw, your code is unnecessarilly long and convoluted. The entire calculation can be handled in just a few lines of … | |
Re: ISBN is a unique identifier for a publication. You could use it as a primary key, but that would only work if you don't intend to ever have more than one copy of any specific edition of any specific title. It will also not work if you consider different editions … | |
Re: an IDE at this stage is the worst thing to use. Rather you should get to know the tools you have, editor and command line compiler and runtime. If you're incapable of getting to grips with those, it's not too late yet to change your chosen profession. And you'd better … | |
Re: if you get a headache trying to think up a class to combine the two fields and find a way to sort on that, you're bound to fail your course so you'd better give up now, why put in the effort knowing you're going to fail anyway? | |
Re: I can guess, as it's only been asked like a million times before. A few seconds using its favourite search engine should give it the answers it wants for its questions, but of course that's too much effort for it so it tries to trick people into doing its homework … | |
Re: that's one way, but that would just map each JSP to another URL. The only real solution is to use HTTP request forwarding rather than the response redirection usually shown in tutorials (because it was once the only thing possible, and the tutorials haven't usually been thoroughly revised in a … | |
Re: put the files on a floppy disk, print an address label, put disk in an envellope, put label on envellope, run to post office, buy stamps, put stamps on envellope, deposit envellope in mailbox, wait. | |
Re: Global warming is just a lot of hot air, it doesn't exist (at least not in the way the treehuggers claim). The world economy isn't any worse overall than it has been in a long time, though there are local problems in Europe. There's never been less wars and conflict … | |
Re: same way you create any other list. If you don't have such a list yet it clearly indicates that you did not in fact create that server yet. So that statement was a trick to try to get someone to do your work for you and write you a client. … | |
Re: [QUOTE=zandiago;442805]Oh my goodness...that's carzy....not many cars can do that. Well time for me to head to the alps...[/QUOTE] hmm, weird cars you have there... I own a little Ford Fiesta with a 1.3 liter engine. It does 190kmh (which is just short of 130mph) when I put the pedal to … | |
Re: [quote]I am wondering how can I create an user interface [/quote] By sitting down and trying. Waiting for someone to do it for you isn't going to work. But first do some research into what you're going to need to create that application. File handling, some user interface toolkit, maybe … | |
Re: [QUOTE=Duki;438167]> The halo series is overrated. i hate you.[/QUOTE] All games are overhyped on release... | |
Re: [QUOTE=zeroth]Well, I'll have to go along with those, however, with a mix of country and classical to round out the taste buds. I know, I'm weird...[/QUOTE] I love country. Sadly it's nigh on impossible to get here (the last country music show on radio was cancelled 20 years ago and … | |
Re: [quote]Personally, I don't like the new "everything must use tags - no Java in JSP pages" mantra they have gone to with the latest JSP spec[/quote] why not? Clear separation of concerns is where it's at. Mixing business logic with display logic is bad as it makes for code that's … | |
Re: the trend these days is to take whatever weight the person enters and tell them they're severely obese and need immediate treatment by the most expensive doctors they can find. | |
Re: so you want to authenticate passwords without having the passwords stored anywhere in any way. How the heck are you going to know if the password entered is the correct one if you have nothing to compare it with? Senseless "requirements", design rejected. | |
Re: if you don't understand the question, don't try to answer. Array != ArrayList as you would have known had you read the documentation (but then, you tell people they shouldn't read the documentation and you clearly have followed your own advise...). | |
Re: tables are an anachronism in html. They're layout elements in a language that's moving away from layout to content, with the layout being provided by CSS styles. They've also been heavily abused over the ages by people who didn't know what the heck they were doing but called themselves web … | |
Re: [QUOTE=Sturm;436109]I was always under the impression that web developers were laughed [URL="http://lukewelling.com/wp-content/uploads/2006/08/programmer%20hierarchy.gif"]at[/URL] by "real" programmers. (oh and whats A level math? Calculus?)[/QUOTE] The typical "web developer" is a kid who knows a bit of Javascript and CSS, and goes around calling himself "programmer" and "developer". They're laughed at for they … | |
Re: You can't disable that. It's a security feature to distinguish windows launched from Webstart (or applets) from windows launched from standalone applications. This was originally invented to prevent criminals from launching popups from hidden applets on websites made to look like message boxes from the browser and have people enter … |
The End.