4,084 Posted Topics
Re: you need our help to modify the source code ... who wrote the original source code ? | |
Re: since websites have been promoted long before social media existed, of course it is possible. But to provide with decent information on the "what and how", it would require more information on the site you are trying to advertise. just a few examples: if you go to metalfestivals, you'll immediately … | |
Re: and what is your actual question? even if you want to find out the hard way, all you need to do is copy paste the code, compile it and run it. | |
Re: a few other remarks: 1. applications using servlets are not desktop applications, and should NOT be run using the java <NameOfClass> command. 2. Java 2 SE became out of date in 2006, you may want to update your study material. 3. if BinarySearchProgram is not a webapp, then running it … | |
Re: hard to say what "a good laptop" would be, because this description is way too vague. good for what ? a laptop that would be good for my father, for instance, would not be a good laptop for me. my father likes to do the average stuff: read his facebook … | |
Re: you mean: will we provide you with illegal copies of them ? why don't you buy them ? | |
Re: that would depend on your knowledge and interests. not something we can judge about. | |
Re: don't use ints for a date, use an instance of Date. also: this `public boolean ckOldestBirthDate(Profile p, Profile oldestStu)` is bad coding. either make the method static, and call it through the class, or make it only take one parameter. remember, since you already call it on an instance, you … | |
Re: as Taywin says, you'll need an entire structure to do this. you can't do such on a String itself, since a String is immutable | |
Re: by a vidual learner, I assume you mean 'visual learner', as in looking at code, without actually checking what it is it does in the background? especially if you are "pretty new to Java", don't just look at code. you'll learn nothing, except how to copy-paste code. | |
Re: and where do you get a nullpointerexception ? can you post the stacktrace ? | |
Re: if you are hosting the Olympic games, no doubt, your budget will allow you to hire some decent developers. if that is what you are looking for, [this forum ](https://www.daniweb.com/business-exchange/jobs-and-resumes/52)might be what you need. if not, what's stopping you from writing the code ? | |
Re: please give an actual question. what do you want to compare Strings to ? references ? use the '==' comparator. value ? use the equals method. value, except for case equality ? use the equalsIgnoreCase method. substrings ? use indexOf, or contains. chars ? use an iteration and '==', then, … | |
Re: 1. for Virus scanning purposes (as said earlier) Java is not the best suited language 2. this is not a gimme code forum | |
Re: learn using servlets. check the two sticky posts in this forum. | |
Re: [this one](http://forjenssake.files.wordpress.com/2012/03/abe-lincoln-meme.jpg) explains it pretty well. | |
Re: JCheckBox is for in any Panel or JFrame, JCheckBoxMenuItem is specifically for when you want a JCheckBox in a menu. | |
Re: to "go back", just put it all in a while loop, which checks whether or not the input you gave, is the input to terminate the application | |
Re: well ... that's the story of life, and not just online. basically, the same applies to laws of a country. they are set, altered, changed, ... by a small group of people, that supposedly "represent" the citizens, but, basically, when these bills and laws are voted, we can only hope … | |
Re: you should not attempt to write a virus scanner using Java. the language is not appropriate for the task. | |
Re: if this is not your code, don't try to "understand" it. if you want to understand this: learn Java until you've reached the level that you can understand it. don't just copy-paste code you found on the web, ask someone to explain it, and think you learn something that way. … | |
Re: NSK: are you deliberately ignoring replies? why do you start a different thread, while are your threads are about the same topic? I'll say it once again: JAVA IS NOT A LANGUAGE SUITED TO CREATE AN ANTI_VIRUS APPLICATION | |
Re: you have a few errors here: the error you talk about now - once you've declared a variable, you can refer to it using the reference alone. replace int[] result = locateLargest(double[][] a); by int[] result = locateLargest(a); the way you have it is invalid syntax. next, you'll get an … | |
Re: most likely, somewhere you're missing a bracket, or something like that. it's easier to spot if you show the concrete error message, which states on which line the error occurs. | |
Re: amo0lz: this is about the most ridiculous post ever. 1. this thread is years old, don't revive it 2. is your post a question, or a reply ? 3. make your post clear, what is it we are supposed to see in it ? | |
Re: yes, you can ask help here. the way it goes is: you post a specific question you post the relevant code | |
Re: Tycellent: as soon as there is 'For Dummies' in the title, ignore it. | |
Re: Ali_42 : don't go for tricks. the tricks in the end bite you in the a**. yes, it is possible to 'buy' packs of likes, shares, and, most likely, members. but if people find out you have 50.000 members, and there's not a single active member on your page, well … | |
Re: so ... what you want is that two users can simultaneously use the application, but if one user does something, that immediately changes the application's behaviour on the other machine as well ? what 's the point of that? for showing information, I can understand, but to set whether or … | |
Re: did you create/import another Math class ? what Math class are you using ? | |
Re: granted: and while you were sunbathing in the park, someone started mowing the lawn. I wish it was weekend already. | |
Re: Taywin: yes, but even with indexOf, as suggested by the teacher himself, there is either some looping involved, or it won't work. | |
Re: Ali_42: is this what you revive a dead thread for ? the thread is five years old. if the OP hasn't found it by now, chances are, he's not looking anymore. | |
Re: before you start filling combobox2, erase the values that are in there at that moment. looks to me like you're not doing that. but it would be better if you started separating the business and UI code. | |
Re: ok .. so you posted your entire assignment (no, I didn't read all of it, way to much) and all the code you have (no, I didn't read all of that neither, since I have no idea what it is you want us to look at). Could you please add … | |
Re: if you are trying to write a virusscan, Java is far from the language to use. | |
I just was operated on the left knee (second time in little over a month). anyone got a left knee they're not using anymore to spare ? :-P ![]() | |
Re: > this is not a troll. I know there are a lot of Windows fans here saying that there are a lot of Windows fans here, probably is the biggest troll of all. > unlike the most of you, I've read Microsoft's FINANCIAL reports, and understand accounting. I know how … | |
Re: in order to avoid the ArrayIndexOutOfBoundsException, replace this: `for(int i=0; i<=4; i++)` by `for(int i=0; i<4; i++)` but, your logic is wrong: you should only print whether the name is found after all checks have run: try this: - set a flag 'found' to false for(int i=0; i<4; i++) { … | |
Re: to add to James' point: if you have 'zero knowledge of Java', you should first 'gain knowledge of Java' instead of thinking it's a good idea to start with I/O tasks in Java. just look at it this way: if you hire a contracter to build you a house, would … | |
Re: you make an analysis, you write the code based on this analysis, you compile the code, if needed, you fix any compilation errors, run the code, if needed, fix any run time errors you encounter, have your application tested by someone else (test phase) fix any bugs they encounter repeat … | |
Re: since we don't know the code of ConvertDate, we can't be sure. for all we know, this are static methods in a class calling ConvertDate which has it's own instance of Scanner | |
Re: what you could do, is write some sort of factory-like method. for instance: public class Person{ private String name; private int age; public Person(String name, int age){ this.name = name; this.age = age; } // just assume the setters and getters are here. } at this point, there is no … | |
Re: the only thing that is "wrong" with it, is that you haven't finished yet. if you want us to be more specific, explain how you notice that it's wrong. do you get an error message ? does it compile ? | |
Re: well ... just check all the words in the file against an english dictionary | |
Re: 4.1 cm Windows 7 HP EliteBook 8560w laptop screen. I'll try on my desktop tonight. | |
Re: he might have the same problem as one I tried to help with earlier: declared the textArea as an instance variable, but only added a local variable of type JTextArea with the same name to the actual JFrame. it would be easier to see more of the code, to decide … | |
Re: I was downvoted (a number of times) once because the person had the next reasoning in mind: "You have the nerve to point out that my replies are dead wrong, the code I provide is not what is asked for, nor should be provided, and my advice can only confuse … | |
Re: hey Jeff, welcome to the forum. do understand that the posts are over two years old. I doubt that the OP is still looking. | |
Re: so .. basically, you need to know how to call a method ? `int[][] data2 = new int[row2][column2];` make sure to add this line after you've initialized both values. |
The End.