Forum: Geeks' Lounge 45 Minutes Ago |
| Replies: 9 Views: 81 If you have purchased a version of Windows, if you then use a different, even stolen version of Windows but can prove that you purchased it previously. . it is still illegal, but highly unlikely that... |
Forum: C 53 Minutes Ago |
| Replies: 7 Views: 7,737 Umm you need a dynamic programming algorithm that uses subproblems and memoization to solve this adequately. Pretty sure all of the "solutions" listed in here are wrong. |
Forum: DaniWeb Community Feedback 56 Minutes Ago |
| Replies: 9 Views: 114 Considering mods aren't ever bots, I think it'd be safe to write a quick script to let them do their job quickly. (It can't be that hard to write a check for the user's usergroup?) |
Forum: Java 59 Minutes Ago |
| Replies: 1 Views: 39 Well, this isn't really the correct forum for job advice, and furthermore, most of the members here are either from the US or the UK. |
Forum: Java 1 Hour Ago |
| Replies: 1 Views: 26 Yes, there is a problem, because these threads could potentially access/modify the data at 'unfortunate' times. For example, thread 1 modifies variable A to 2, then thread 2 immediately modifies A to... |
Forum: Java 1 Hour Ago |
| Replies: 1 Views: 19 Ok and? I think it's pretty obvious how java and mySQL can work together to put together a generic idea like a "project management system" that doesn't even have any specific guidelines. |
Forum: Java 5 Hours Ago |
| Replies: 2 Views: 35 It makes sense that private variables wouldn't show up in a javadoc because only the class itself has access to private variables. So it is just not necessary. |
Forum: Java 12 Hours Ago |
| Replies: 3 Views: 74 So which part are you confused about? Reading in the values? Calculating the formulas? The formulas are standard formulas, so if you don't get them, just look up those terms on google and you'll find... |
Forum: Java 2 Days Ago |
| Replies: 8 Views: 121 Then do System.out.println("f") afterwards. lol. |
Forum: Java 2 Days Ago |
| Replies: 8 Views: 121 You're probably storing it in a double variable. For example
double result = 0.0;
result = average(x,y);
Now result is a double which is a larger type than float. |
Forum: Java 2 Days Ago |
| Replies: 2 Views: 84 You can't use == (or !=) to test for equality against Objects. You have to use the .equals() method. And your method is intended to return true if you successfully added the event to the calendar and... |
Forum: Java 2 Days Ago |
| Replies: 8 Views: 121 return (float)((x+y)/2.0);
OR
return ((float)(x+y))/2.0; |
Forum: Java 2 Days Ago |
| Replies: 6 Views: 129 while(wordQuit == 2);
What is that for? ^
And what is your correctGuesses variable for? You never used it.
And the reason you got InputMismatchException is because your scanner tried to read... |
Forum: DaniWeb Community Feedback 2 Days Ago |
| Replies: 2 Views: 118 Actually, at the risk of sounding whiny, I retract my statement. But I still believe that new members misuse the down vote system to "spite vote" |
Forum: Java 2 Days Ago |
| Replies: 8 Views: 191 Like the docs say, split does not return the character that was split around. My point in my previous post was that you can easily figure out where the characters were anyway by using a little... |
Forum: Java 2 Days Ago |
| Replies: 3 Views: 80 You need to register an ActionListener with the buttons as they are created, similarly to how you declared the ItemListener (with b.addItemListener). You can find examples of ActionListeners being... |
Forum: Java 2 Days Ago |
| Replies: 2 Views: 101 Are we supposed to read your mind? What do you need help doing? |
Forum: Java 2 Days Ago |
| Replies: 2 Views: 118 Yes, it would work - you are correct. See here (http://cs.wellesley.edu/~cs230/spring07/lectures/lec19_bsts/lec19_bsts.pdf) for definitions of predecessor and successor. |
Forum: Java 2 Days Ago |
| Replies: 1 Views: 70 http://www.daniweb.com/forums/thread235793.html
You need to mark solved threads as solved - not to do so (and not even a thank you post)? is rude.
collections.sot(values);
There is no sot... |
Forum: C 3 Days Ago |
| Replies: 9 Views: 217 no problem. If you want to go that route, I don't see how he could be upset. There are a lot of tutorials online on how to use structs. |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 13 Views: 560 True enough, vega. I buy small hard drive sizes and I have a 1TB external and neither are ever anywhere close to full. |
Forum: Java 3 Days Ago |
| Replies: 3 Views: 80 import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ComboBoxFrame extends JFrame {
/***/ private static final long serialVersionUID = 1L;
private JComboBox b;... |
Forum: Java 3 Days Ago |
| Replies: 6 Views: 129 To make it easier on yourself, you should have two Strings. One String should contain the correct word. The other String should contain what you are displaying to the user. If you do this, when the... |
Forum: C 3 Days Ago |
| Replies: 9 Views: 217 Please don't PM daniweb members. Personally I don't mind, but in general, that is the rule here. If people want to help they will respond in your thread. Regarding your PM, if your professor... |
Forum: C 3 Days Ago |
| Replies: 9 Views: 217 My advice was to not use a 4 dimensional array when one is not needed. In fact my claim is that using a 4d array in this case is not good programming. If you were to declare a 2d array with this... |
Forum: Java 3 Days Ago |
| Replies: 18 Views: 253 That is actually good logic - but it assumes that the MouseListener wouldn't get re-added due to the method calls being blocked/having to wait for receive, so it probably runs into the same problem... |
Forum: Java 3 Days Ago |
| Replies: 1 Views: 79 Because Strings are immutable, so every time you say string+= in the background, another String is being created and all of the contents are copied into memory. This process takes a lot of time once... |
Forum: Java 3 Days Ago |
| Replies: 6 Views: 129 Let me get this straight before I dive into trying to help you. So you are displaying the String as "_ _ _ _" initially, where every second character is a space? Then once the user guesses a correct... |
Forum: DaniWeb Community Feedback 3 Days Ago |
| Replies: 90 Views: 4,716 I don't, and I occasionally double post with someone else or vice versa. Serves me right.
:( |
Forum: DaniWeb Community Feedback 3 Days Ago |
| Replies: 7 Views: 175 Daniweb usually seems pretty fast to me. Well, fast enough, anyway. But I did get the same message the other day. . not complaining, I've been on forums that get them much more frequently. |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 128 Views: 7,441 "It requires a very unusual mind to undertake the analysis of the obvious"
-Alfred North Whitehead |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 2 Views: 164 If by convert, you mean rewriting the code so that the original intention of the program is still there, then yes, you can do it. Usually. If it is just a text input/output program as opposed to a... |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 13 Views: 441 That drunk guy video is unbelievable. I've been around my fair share of drunks, but nothing remotely close to that. It looks like a supernatural power is controlling him with a will to get beer. |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 8 Views: 150 Ok, I used the site Ancient Dragon provided and I got more reasonable results. |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 8 Views: 150 12705 kbps download almost the same upload
wtf |
Forum: Java 3 Days Ago |
| Replies: 18 Views: 253 Well, thank god that somebody else stepped up, because I was getting quite frustrated and it isn't even my program. Haha. Although after a quick look I don't see why your version is any different... |
Forum: Java 3 Days Ago |
| Replies: 7 Views: 160 I've used it in projects to send "Objects" (as data) across Sockets and reuse the Objects on the other side. You could send the Objects as data and have both client and server know the exact format... |
Forum: PHP 3 Days Ago |
| Replies: 11 Views: 234 why would you post 'php code error' in the java forum? |
Forum: Computer Science 3 Days Ago |
| Replies: 1 Views: 98 Don't post questions in code snippets. Go read daniweb's rules. Specifically about which forums are appropriate to post in, what kind of questions are appropriate, and how to post a thread. |
Forum: C 3 Days Ago |
| Replies: 9 Views: 217 You should switch to using a struct to represent your ticket class, destination, seat, and time. . All four of those things are obviously related data. You're only going to cause yourself headache... |