1,678 Posted Topics
Re: [QUOTE=Chad W;1020869]Yes, I bet the frendly people who help here would wish more people would search for answers before posting duplicate questions. :) On a side note, I'm going to have to ask for help in a second, since I have a switch statement that just isn't working correctly. :(:([/QUOTE] … | |
Re: The system is idiotic. Lets see how low we can get this post guys. -50? | |
Re: Your formula for standard deviation only works for an entire population. If you're taking the standard deviation of a sample, then you need to divide by (n-1), not by n. (Note: This might not be important to you, depending on what your teacher said.) In any case, it looks like … | |
Re: Once you select the item in the combo box, it will appear in the JTable automatically, using whatever the default JTable code is, so you must have overridden a method or something. Anyway, return rosterList.get(row)[col]; What does that do? Looks like it causes an error. If you go to your … | |
Re: [QUOTE=JamesCherrill;909618]...or... use nested arraylists ArrayList<ArrayList<String>> rows and access the inner ArrayLists, and their Strings in the usual way.[/QUOTE] James, out of curiosity, isn't that the same thing as what Vernon suggested? | |
Re: [QUOTE=jwenting;287721] you should NEVER rely on hashCode to be even remotely unique. As to Enums, read up on those. You can switch on them as well as on integer constants.[/QUOTE] Actually, I changed my mind. I disagree. You [I]can[/I] rely on the hash to be unique if you know that … | |
Re: If you're planning to profit on these t shirts (which I assume you are) then you should also think of some normal-ish ones for people like me who wouldn't buy the "geeky sayings" ones. | |
Re: And neither of you guys think it is fishy that nobody with over 10 posts on this forum cares? But that two people with one post each happen to come in this thread and co-sign? Fooled us. | |
Re: The switch statement just compares each case to whatever you are switching on, be it an int or a char. So I think there would be no tables, the assembly instructions would basically just subtract the case (ex 'q') from what you're comparing to it, (ex 'a') and then set … | |
Re: ^ No, he's saying only to print out the character the first time it is seen. RealThinkers, what you should do is make an array of 26 booleans, one for each letter in the alphabet. True means it has been seen, false means it hasn't. Then when you see a … | |
Re: [QUOTE=jwenting;1197288]The ONLY way is through extensive experience using them. I doubt anyone knows every method and field in every class of even the core API and knows its correct usage. And if such a person exists no doubt that knowledge is purely academic and he has no clue as to … | |
| |
Re: [QUOTE=smart_pc;1590112]please suggest, do not disgrade or disrespect others work.... atleast the person tried to solve and solved. if you had something to edit , could have mentioned , why to go harsh..[/QUOTE] I think you meant do not "degrade". And they aren't being harsh, they are explaining the difference between … | |
Re: What happens if you execute those SQL statements from within SQL Server itself; does anything get updated? Are the results what you expect? Alternatively, have you tried running the C# code and using SQL Server Profiler to see what SQL statements get executed on the Server (you can run profiler … | |
Re: I doubt your connection is closed because of garbage collection. It is probably closed because your connection is established, your code runs, your method exits, and the program is finished so it closes Sockets etc. Garbage collection does happen, but isn't the cause of your issue. In order to keep … | |
Re: If you put it in Tomcat's webapps directory and then start Tomcat [either as a service or by double clicking the tomcat file in /bin] it will unpack the .war. edit: Just read stul's link, which said basically the same thing. Sorry I wasted my time. | |
Re: 4 years ago they might have helped you create it. Now - doubtful. But I'm sure nobody else is going to help you. And btw, you don't use Math.pow() to generate random numbers. | |
Re: Yeah, I think I can do that in about ten minutes for you. But first, how much are you going to donate to Daniweb for wasting everyone's time? | |
Re: Details. Code you have so far, specific questions, etc | |
Re: This is in the wrong forum. Generally you write an .aspx page and you can write a codebehind file in C# and hook into the asp.net Page lifecycle (google it) from your C# code. To actually get the page to load it would have to be in a location that … | |
Re: Because the "and diet" portion of the query is invalid syntax. It must be getting appended to the end of your query from somewhere, so figure out where it gets appended to the query, and either remove it, or make it a properly formatted query (e.g. and diet=something). | |
Re: First you need to define what you consider a palindrome. Typically a palindrome is considered any String with the same characters (in both directions) regardless of case and regardless of spacing. So your isPalindrome method should 1. Remove all whitespace from your String (you can do this by using google) … | |
Re: I rarely find the site slow. Maybe you guys should upgrade your ISP, hmm? But I agree with you on the reply box - occasionally I'm fooled into that too. But the real solution is to remember to check whether or not you're logged in before you try to post. … | |
Re: edit: I just realized that you're probably a student, and if so, you may be looking to use flat (normal) files. If that is the case then I would still recommend saving the images elsewhere and referencing them (perhaps just by a pathname, if your program is a desktop app), … | |
Re: [url]http://www.asp.net/mvc[/url] Ask a specific question if you expect a specific answer.. Otherwise read through the provided link | |
Re: invokeLater() probably has nothing to do with the problem you are describing. You didn't really explain what you mean by "resuming the program after you go through all the MouseListeners". What does it mean to "go through all the MouseListeners"? MouseListener is an interface; it has several methods that respond … | |
Re: Alex: "That's so pathetic and sad that such a potential person went down on prostitution just for money/pleasure. I feel sorry/sad for her! She has lost almost any sight of virtue. I hope she'll regret it because it is a bad thing. (and to all who say it's nothing wrong: … | |
Re: That's because I graduated, got a job, and stopped posting in there. :p edit: but I'm coming back now, in the java forum. | |
I have html similar to this [CODE]<span><a href="link"><img.. /></a></span>[/CODE]. In IE and Firefox, when the image is clicked, it highlights a box around the image. From that point on the box remains around the image. I don't want any highlighting effects whatsoever. How can I use css or an inline … | |
Re: Use the Scanner class. There are tons of different ways you can do this with the methods in there, some involving regular expressions/Pattern, some with only the basic Scanner methods. ![]() | |
Re: How many for loops does bubble sort use? | |
Re: you put a ; after the main method. Erase the semicolon. | |
Re: To add to jon's reply, look into Auto boxing and unboxing (example: Integer i = 5; will result in auto boxing) and especially look into inheritance. Don't sweat specific examples, such as your array example, until you have a thorough understanding of inheritance and the is-a relationship. Since Character 'is-a(n)' … | |
Re: isEmpty and isFull should be easy. Maintain a variable for the size. Whenever you enqueue, add 1 to that variable. Whenever you dequeue, subtract 1. isEmpty and isFull just depend on the value of that variable. For the actual enqueue operation, maintain the head of the queue as the index … | |
Re: It [I]is[/I] in correct alphabetical order. It's using the numerical value of each of those characters, regardless if it is a letter or number, then comparing the numerical values to do the sorting. 1 comes before 2, and it only breaks on ties, so 10 also comes before 2. I'm … | |
Re: Thank you for making the "code" button darker. Maybe new members will use it more often now. Like other members have mentioned, the quotes are difficult to read. I currently either have to squint or move closer to my screen to read them. Making the font larger and darker would … | |
Re: Humans only have a small understanding of why humans have the capacity to think, so why people always argue so strongly about artificial intelligence is beyond me. Maybe I have no education on the subject, but it seems to me that any "thinking" being done would involve a series of … | |
Re: Ok that's fine but... what problems are you having then? You just posted code with no additional information. | |
Re: If you want to sort your list but do not want to write the sorting method yourself, then you can create an ArrayList, add each of your Integers to the ArrayList, then use Collections.sort(yourArrayList) which will sort it for you. For more information on those concepts, you can look at … | |
Re: The manifest file specifies where the main class is, that way the program can run as you want it to. And netbeans generates the manifest file for you, so you don't see the details of it, but I'm sure that it happens. The manifest file can also do other things, … | |
Re: for loosely related info, you could check out this thread that James and Ezzaral helped me out in before: [url]http://www.daniweb.com/forums/showthread.php?t=187103&highlight=mvc[/url] | |
Re: [QUOTE=darkagn;721764]The String method compareToIgnoreCase should do the trick. For example: [code=java] int result = string1.compareToIgnoreCase(string2); // here result < 0 if string1 > string2 // or result = 0 if string1 == string2 // or result > 0 if string1 < string2 [/code] That should give you a start anyway. … | |
Re: Read the announcement at the top of the forum. Oh, and get gmail. If you really need your msn hotmail account, forward all emails from it to your gmail account. PS "enabling your internet" - how could that be a problem to begin with, if your internet is already enabled? … | |
Re: [QUOTE=Nick Evan;1369606]#4 by rep. This only proves that rep means nothing :) [/QUOTE] You're much too modest. I'm also in the top 50 for rep, post count, and solved threads. Like Nick, looking at most of the other members in those ranks I feel that my knowledge definitely is dwarfed, … | |
Re: No, the huffman algorithm is the most efficient, since it assigns the most frequent characters the smallest sequences. And the algorithm already tells you what data structure you need to do to implement huffman coding. I haven't looked at it in awhile but I think its just a binary tree … | |
Re: Step one: Read the whole string in all at once. This can be accomplished in a lot of different ways. If you're getting it from a file, you could use Scanner input = new Scanner(new FileInputStream(yourFile.txt))); Otherwise, if you're reading it from the keyboard, Scanner input = new Scanner(System.in); Step … | |
Re: Well, I do know that if you do not mark the class as public (which you did not), the default visibility is package level, which means your class can only be accessed by other classes in the same package. So either mark the class public, or put the other class … | |
Re: Yes, there are different features I'm sure. Can you use web services on SE? |
The End.