1,678 Posted Topics
Re: There are some sort of web services xml bindings for java, but it seems to me that you could just treat it as a plain text file, do a search for <JOBNAME> based on a regular expression, then do your editing and write everything back out to the file again. | |
Re: Inline documentation consists of comments in the code which are intended to clarify the overall logic of a program by commenting key points and mentioning their function. It makes the code easier to understand which in turn makes the code easier to maintain. | |
Re: I rarely need to use two dimensional arrays and I have *never* needed to use a three dimensional array. If you create an Object that represents one student, then you can use a one dimensional array and store a bunch of Students in it. You mentioned having three student groups. … | |
Re: Well. . even among the dedicated members, there is a lot of variation in skill here. Wouldn't it be better to have 3 different levels, similar to Sane's challenge at Daniweb's sister site, PFO? | |
Re: Yeah, it's simple enough, I already have it written. Just give me your teacher's email and your name and I'll send it directly to them and tell them it's you. | |
Re: If you have qualms with the clarity of the writing in the book, or with a particular bug in the code in the book, then why not email the publisher? Of course, the writing might be clear to some people but not to others: your claim that it is unclear … | |
Re: Yes; use Serializable. (Assuming all you want to do is save your JList and restore it when you restart, you can use Serializable to save your Objects, then you can easily restore them into the JList). | |
Re: Then I would say the OP is confused by the lack of a no argument constructor. The no argument constructor is [I]only[/I] automagically present if the class does not provide any other constructors. I.e., since FileReader has other constructors, the compiler would not provide a no argument constructor automagically, and … | |
Re: This seems like a fairly simple (conceptually) program to me, although actually implementing it could be quite tricky. You need a typical client server setup (and I'm assuming your server will only accept one connection at once); Java sun has a tutorial I read in the past that is pretty … | |
Re: It does seem very unclear. What do you mean by the recursive definitions? What does recursion have to do with a linked list, other than possibly traversing it (and still, why would you use recursion to do that?) | |
Re: I definitely saw this exact same question answered here on daniweb in this forum within the last 6 months. It seems pretty obvious why you're getting that error (since, in fact, the error itself explicitly says why you're getting it); how to solve it is a different story. Why don't … | |
Re: Strangely, I always get java updates as well that seem unnecessary (not that that is what you were complaining about). I tell my Vista OS to accept the updates but it seems to ignore me, and periodically, it keeps asking me to update again with what seems to be the … | |
I'm wondering where to find what values system() accepts. For example, I want to list the server's OS type. I already did man system, did not find it very useful. And google is returning a lot but nothing relevant. | |
Re: I understand James' point about toString, and he is correct, but if I were you I would probably just write the toString method (without calling it toString though) and use it to get an ideal String representation for your list to display. I can't forsee problems with that in the … | |
Hey guys, simple question that I don't see anything on in the String.h library and I can't remember from my C class 3 years ago. I have the following declaration: char something[100] = "whatever"; And later in the program I call strncpy. After calling strncpy, at some later point I … | |
Re: Sergio, my professor has put together some very good beginner Iphone programming (objective c) resources. He has his own slides, but he also links to other resources that he considers useful. If you are interested, you can do the projects there also, they follow the slides, so they are all … | |
Re: In the mouse moved method, say "if(downA == false)return;" as the first statement in the method. | |
Re: From what I remember SwingWorker is used when you have a long running task that you need to run. The reason you'd use SwingWorker is to run your long running task in the SwingWorker thread so that the task does not block up your GUI, causing it to appear unresponsive. … | |
Re: You can definitely have a resource base in SVN.... but if you don't want to use SVN I've heard of google code, you might want to check it out. | |
If I was using @$ as my flag pattern (to signal the end of the data) what would I do if @$ was seen in the data? I would just stuff another @$ right after it in the sender and in the receiver, if I saw two consecutive @$ I … | |
Re: [QUOTE=Narue;1076766]That piece of paper isn't nearly as necessary as the job ads would have you believe.[/QUOTE] Yet how many people do you know who have a programming job who don't have some sort of degree or certification? I thought you were a manager of some sort - if so - … | |
Re: [url]http://en.wikipedia.org/wiki/Hash_table[/url] The linked list is [I]only[/I] needed because if the hash function maps multiple keys to the same index, and you don't have some mechanism for letting two things go there, you're screwed. After you read the wikipedia page above, you'll have a decent idea of what is going on, … | |
Re: Use a JLabel to display the guessed-so-far word. If a letter hasn't been guessed correctly it should display "_" instead of the letter, which is why you'll need to space your word also (so the _ don't run together, looking like a line). Use a String internally in your program … | |
Re: 1. Read about LinkedLists on wikipedia or elsewhere 2. Use Java's LinkedList class 3. To insert things in a linked list, consult the documentation's insert method 4. To figure out where you should insert a value, you can easily use a LinkedList of Integer Objects, then search for the Integer … | |
Re: The JVM? (I know what it is and does, but why are you mentioning it?) And arrays always have to be defined in advance, so hypothetically, if you wanted to keep an instance variable for its length, no, you would not need to call array.length ever again. | |
Re: if you do things like removeAll() on a JFrame or JPanel, then after adding new panels, you might need to call revalidate() or validate(). I've told people that before and they've reported back success, so go try it and let me know. If that doesn't work, post all of your … | |
Re: Do you want it to be a "random" problem or do you want it to be a problem that you made up in advance, chosen from a list? I'm not going to waste time explaining how to do both when you only need one or the other, so tell us … | |
Re: Change your program so that instead of doing something like getHumanAction, you simply don't do anything until the player takes an action. In other words, if you have a listener that does the getHumanAction when the player clicks his button, then your game will work fine. For example, [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/actionlistener.html"]write an … | |
Re: If you want a serious suggestion, choose a simpler program to break down. If you don't know Java programming, which you clearly don't, then don't try to write about a program that is above a beginner level, for the same reason that you wouldn't try to explain Calculus to anyone … | |
Re: If you're only adding .1 or .25 etc, but the result shows up as something which isn't a multiple of .1 or .25, then y was clearly not equal to a multiple of .1 or .25 to begin with. In other words your initial y value must have been something … | |
Re: Yeah you've been taught wrong. You have to learn objective c among other tools. This (from my class) is a good reference material: [url]http://cs491f09.wordpress.com/category/lectures/[/url] But if you have any more questions about the iphone and objective c, etc, post them in the appropriate forum (which I think would be 'other … | |
Re: If you declare a method as taking an int as a parameter, then you need to pass that int. i.e. in your setX and setY methods, you cannot call setX(), you have to call setX(PUTANINTHERE!!!) hope that helps. And one more thing - having getX and getY methods might not … | |
Re: If you want to output in a Swing GUI (which is what you're currently using) in a table format, then you should use a JTable, not whatever else you're using (JTextArea?). Check this out: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/table.html[/url] | |
Re: [url]http://en.wikipedia.org/wiki/Hash_table[/url] If you have specific questions ask them and someone will be happy to help, but if you're going to ask things like that, use google. | |
Re: Hey thinkersgroup, they're all taken right now - the rest of us posted about this years ago... ![]() | |
Re: An API just defines what kind of functions you can use. Sometimes these just do something like allow you to write a GUI in Swing and sometimes it would allow you to do stuff like gusano mentioned with uploading on flikr. | |
Re: Definitely not Mandarin. It is considered one of the hardest languages in the world to learn, so if you want to study computer science and not foreign languages, take something easier. And I should add that I have never heard of it having any advantage as far as cmsc degrees … | |
Re: Haha, most of those were pretty good. Thanks for sharing. | |
Re: [QUOTE=mobmgg;1065416]for count= 1 to 50 display count End for[/QUOTE] [CODE]int count = 1; while count < 51{ display count; count = count + 1; }[/CODE] | |
Re: Yeah, TBH you could answer all of these questions yourself without too much trouble. I don't understand why the average salary is a question though - just look it up. More than likely whoever you are asking won't know as well as the internet anyway. | |
Re: You already know what those things mean. If you're talking about big oh complexity or something of that nature then state your questions more clearly. | |
Re: Anything that is an Object... is an Object so make it a class. Science Fiction, Non Fiction, Literary Fiction, and Crime Fiction are dead give aways that your teacher wants you to make them types (either Abstract classes or just a class where everything in that genre extends from it). … | |
Re: You could also (more correctly) fix it by using error checking. try... catch. Exception handling. Look them up. The poster above me, his solution won't work if a user goes back and edits something into a text field that isn't a double. Then you'll get the error again. Error checking … | |
Re: If you want to be able to programmatically find the heading, you first have to define what separates the heading from the other text. It is all just text in a JTextPane, right? | |
Re: Your method isn't recursive. A recursive method has to call itself. Although recursive method calls usually amount to loops anyway. Not going to get into that here though. Anyway... What does the second one do? Just show us the output. My first guess would be it didn't work because you … | |
Re: This is definitely interesting. Before I get into my crazy idea of how to do this (that involves bit stuffing and using a special character to denote the start and end of images) let me make sure I understand the issues. Mixing images and text is never really done in … | |
Re: Uhh no. Man is nowhere even close to teleporting an apple, let alone a planet. You're delusional. Also, I'm not a physicist, but I read that article, and they didn't teleport anything in the sense you are implying. They 'teleported' it in the sense that they were able to duplicate … | |
Re: Why is there so much code in your remove method? All you need to do is search linearly through your array looking for an item with the name that matches the String you're searching for. That should take maybe three lines or so of code. method remove(string removeMe) for (every … |
The End.