7,116 Posted Topics
Re: Try displaying the arraylist - it looks like maybe you have words and meanings originally adjacent (?), but after sorting there's no relationship between the word to its meaning I see no code to display a meaning anyway you have an empty catch, so there may be a serious error … | |
Re: OK Bea. Now go back to the main Programming forum and read the very first post - the one called ["Read This Before Posting A Question"](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). Then come back here and fill in all the missing pieces from your first post. After that someone will help you. | |
Re: Do provide evidence of having done some work yourself if posting questions from school or work assignments. | |
Re: In theory you shoud be able to capture the mic input stream somehow, then compress it into byte arrays and send those over a socket conection, but honestly I think you will find it very hard. (I think I would find it very hard.) There may be libraries/packages you could … | |
Re: You can put them in a table... one row three columns. Worked for me! | |
Re: @sund Please read the Daniweb Member Rules before posting again. DaniWeb Member Rules include: "Do not hijack old threads by posting a new question as a reply to an old one" http://www.daniweb.com/community/rules Please start your own new thread for your question Many of our members have English as their second … | |
Re: I understand that you have multiple GUI classes that all need to access the same list of cars? If so, a common approach is to create one list of Cars and pass it to each of the GUI classes via their constructors, eg (abbreviated code) p s v main(...) { … | |
Re: Your loop (line 6) keeps dividing `number` by 2 until it's zero - then you print it. So of course it's zero. One fix is to use a copy of `number` in the loop, so the original `number` isn't changed. | |
Re: XRG - gives you a little floating window with graphs of CPU, network disk etc usage in real time. I use it all the time because I have a lousy internet connection and so I want to keep an eye on it. Plex. World's best media center/hub/server | |
Re: UI You're not listening. Nobody here is going to waste their time posting to help you when you probably already have an answer from another site. You don't even have the basic decency to mark thread "solved" so people don't put effort in when you already have a solution. You … | |
Re: Yes. Once you have the basics then it's just getting lots of relevant experience. There are lotsof experienced developers here who can help with specific topics and questions - so if/when you hit a roadblock we will be here to help. | |
Re: Troll alert: UI posts the same questions on multiple sites and doesn't mark threads "solved" when he has an answer. Just sayin' | |
Re: Well, that's interesting code, but did you think that after 9 years anyone was still waiting for it? And if you had bothered to read the thread before posting you would know that a CSV file may have quoted strings containing commas. People have already thought about that, discussed it … | |
Re: Please post the exact full error message. and someone will explain it for you. | |
Re: Tanisha: see http://bfy.tw/C1JI or read the very first post in this thread. | |
Hi all you php buffs. Out of simple curiosity I thought I would take a look at php. I've been programing since I joined IBM as a trainee developer in 1969, so I have some familiarity with programming in (eg) 360 assembler, APL. PL/I, ... , Smalltalk, Java, Swift. (I … | |
Re: You need to go back and review the use of quote marks when defining Strings. Your strings are missing their quote marks. That's what those Notices are telling you - PHP has fixed some of your code by adding the missing quotes. | |
Re: You could add a boolean parameter to Player:: displayPlayer to control whether the first card should be displayed or not. ps: Immutable classes are a good thing! You have setters in Card for value and suit, probably because that's a thing people do without thinking. In this case it's a … | |
Re: The last parameter for fillArc is the size of the arc in degrees, not the angle at which it finishes. So it should always be 2 or 4 (sorry, don't have the time to work out which) | |
Re: Hi Mudzy, welcome to DaniWeb. Your code looks OK. You could combine both "if" tests into one with a logical OR ( || ), which is a bit shorter, but a bit less clear maybe. You could use the Character class to convert c to upper case, then use just … | |
| |
Re: Rproffitt... What's going on here? Who are you quoting? | |
Re: Line 4 ` textara_` is that how it is in the actual source code, or just a copy error? ![]() | |
Re: Being deeply sceptical about this, and agreeing with Teme64, I hacked together a little Java version of the logic (no GUI needed), ran 10000 iterations with all 8 possible "A" choices and guess what - absolutely no consistent or significant difference in the number of wins. Here's the code in … | |
Re: If you have a question please ask it. If you need help with your code please post what you have done/tried so far. | |
Re: > I don't know where to start The assignment is broken down into steps for you, but you can break it down further. Start with > reads the grades from a user. The format of a grade line is: ... just do that, one step at a time. Read in … | |
Re: You didn't quote the full error message, not even the relevant line number, so you are making this hard for anyone who wants to help. But at a quick scan you appear to handle some IOExceptions correctly, so it's essential that you provide full error message details and, most important, … | |
Re: 1. AWT and Applet are decades out of date. You should be using Swing and JApplet. 2. I can't be bothered to load and read your word docx. What exactly is your question here? | |
Re: > minimum 2 of 3 states correct I've been trying to follow this topic, but am still stuck on the first paragraph. What is the formal definition of "correct" in this context? | |
Re: Has your course covered the idera of defining a class? The obvious approach is to create a Tree class with the tree's height and growth rate and the related methods. A Forest is then just a collection (could be an array) of Tree objects. Reaping is just a pass through … | |
Re: Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question and then start again. | |
Re: You need to execute the `System.setOut(printStream);` *before* you execute any statements that generate output. In other words all output goes to the default System.out until you call setOut. After that any new output goes to your file. | |
Re: Start by reading this https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question then post again | |
Re: A 100x100 array of integers is only 40kbytes, so that's perfectly feasible in most environments. Just loop through the input keeping one index for the current polygon and one for the current point. Or you may be better advised to use linked lists for the polygons and the points in … | |
Re: Just think about this from my viewpoint for a moment. You have something called myapp that has stopped. Do you know how many programs called myapp you can find on Google? Maybe this isn't even any of those, but something you wrote. I don't know if it's C<something>, Java, or … | |
Re: How far have you got? How much Java do you know? What exactly are you stuck on? | |
Re: Do you have any problems with applications that are not dependent on the internet? If you have got as far as re-installing WIndows then maybe the problem is internet-related. You may have configuration problems such as bad proxy settings or over-restrictive firewall settings. Are you on a network that requires … | |
Re: I'm not a php user, but just reading what you posted... these constants have a name and value (which depends on the context). The name appears to be case-insensitive (ie LINE Line line are all valid), but the values follow case-sensitive rules as above. Maybe a php buff can confirm … ![]() | |
Re: 1. The View class should just be given a reference to the Model that it will display, then all it needs are public methods like displayDetail() or displaySummary(). It should get the individual fields from the Model as needed. 2. If you have a Controller then you shouldn't be calling … | |
Re: Hi jaina Please read the whole topic before replying, especally for threads that are 6 years old. The original question was about solving the problem using arrays in C++. While what you post is correct, it's (a) 6 years too late and (b) irrelevant. | |
Re: OK. I don't have time to read 555 lines of code in detail right now, but I did a few spot checks and was very happy with what I saw. This is maybe the highest quality code I have ever seen for such an early-stage learning project (I'm refering to … | |
Re: Does the ID have a known fixed length? If so you can have a text changed event listener that ignores text less than the necessary length, and starts the search as soon as the text length is right. | |
Re: Start by slowly and carefully solving one or two by hand. Make a note of what you are doing at each step and why. When you have finished those notes will describe an algorithm or process that can solve a triple sudoku. Now you have something that you can use … | |
Re: Do you have a question? | |
Re: When you create your jar file it's optional whether you include the source code or not. The source code is not needed to run the app, so don't include it. | |
Re: Hi Viral This is a web site for people who work with computers and want to learn more. If you want to learn how to write turtle code then start your own topic here and someone will help you. If you just want someone to do it for you then … | |
Re: > What do you mean by NAN, NAn, nan etc.? In many languages its Not a Number - a standard value that floating point variables can have, indicating that they do not currently have a valid numeric value (eg as a result of divide by zero, or parsing a string … | |
Re: What is supposed to happen when the user say "yes" - do some other stuff and return to that point, or exit from what you are doing then go on to the other stuff? |
The End.