7,116 Posted Topics

Member Avatar for Badulla

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 …

Member Avatar for JamesCherrill
0
365
Member Avatar for bea_1

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.

Member Avatar for JamesCherrill
0
232
Member Avatar for aditya_23

Do provide evidence of having done some work yourself if posting questions from school or work assignments.

Member Avatar for aditya_23
0
997
Member Avatar for Doogledude123

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 …

Member Avatar for Nagy
0
2K
Member Avatar for divinity02
Member Avatar for patk570
0
284
Member Avatar for john44

@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 …

Member Avatar for yash_8
2
1K
Member Avatar for peter20

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(...) { …

Member Avatar for peter20
0
304
Member Avatar for Tuan_6
Member Avatar for diafol
1
271
Member Avatar for Varunkrishna

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.

Member Avatar for Prabhat_4
0
1K
Member Avatar for tompatrick

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

Member Avatar for Zed_2
0
2K
Member Avatar for UI

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 …

Member Avatar for JamesCherrill
-6
775
Member Avatar for Violet_82

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.

Member Avatar for Violet_82
0
417
Member Avatar for UI

Troll alert: UI posts the same questions on multiple sites and doesn't mark threads "solved" when he has an answer. Just sayin'

Member Avatar for JamesCherrill
-3
316
Member Avatar for MukeshZ

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 …

Member Avatar for deceptikon
0
20K
Member Avatar for jonathan_20

Please post the exact full error message. and someone will explain it for you.

Member Avatar for JamesCherrill
0
120
Member Avatar for Bob
Member Avatar for JamesCherrill
0
1K
Member Avatar for JamesCherrill

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 …

Member Avatar for JamesCherrill
0
465
Member Avatar for UI

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.

Member Avatar for JamesCherrill
0
214
Member Avatar for Ater Mawut

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 …

Member Avatar for JamesCherrill
0
231
Member Avatar for Start4me

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)

Member Avatar for JamesCherrill
0
284
Member Avatar for Mudzy

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 …

Member Avatar for JamesCherrill
0
16K
Member Avatar for divinity02
Member Avatar for JamesCherrill
0
187
Member Avatar for chrisschristou
Member Avatar for dwlamb
Member Avatar for diafol
0
426
Member Avatar for Reverend Jim

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 …

Member Avatar for xrjf
0
2K
Member Avatar for Muqeet_1

Your source code has errors that prevented java from creating an executable class file. You need to read all the error messages from the compiler and fix those before trying to run you program.

Member Avatar for mahe_1
0
333
Member Avatar for Mehar Awais

If you have a question please ask it. If you need help with your code please post what you have done/tried so far.

Member Avatar for JamesCherrill
0
171
Member Avatar for Jàck_23

> 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 …

Member Avatar for JamesCherrill
0
695
Member Avatar for Trevor_5

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, …

Member Avatar for JamesCherrill
0
357
Member Avatar for CS_GUY1234

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?

Member Avatar for CS_GUY1234
0
511
Member Avatar for it@61@sec

> 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?

Member Avatar for AssertNull
0
1K
Member Avatar for Heather_6

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 …

Member Avatar for ignacio.camachoortiz
0
448
Member Avatar for Somali_1

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question and then start again.

Member Avatar for JamesCherrill
0
114
Member Avatar for George_23

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.

Member Avatar for JamesCherrill
0
532
Member Avatar for Syed Suleman

Start by reading this https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question then post again

Member Avatar for Tarek_2
0
182
Member Avatar for Khaled_9

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 …

Member Avatar for AssertNull
0
254
Member Avatar for palash_1

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 …

Member Avatar for AssertNull
0
980
Member Avatar for Aob

How far have you got? How much Java do you know? What exactly are you stuck on?

Member Avatar for Aob
0
5K
Member Avatar for Nancy_11

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 …

Member Avatar for JamesCherrill
0
406
Member Avatar for UI

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 …

Member Avatar for diafol
0
323
Member Avatar for Violet_82

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for AmerJamil

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.

Member Avatar for JamesCherrill
0
1K
Member Avatar for John_160

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Raddin

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.

Member Avatar for JamesCherrill
0
349
Member Avatar for Noname_1

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 …

Member Avatar for Reverend Jim
0
484
Member Avatar for Selomie
Member Avatar for Patrick_22

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.

Member Avatar for JamesCherrill
0
342
Member Avatar for wai.yan.9678

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 …

Member Avatar for JamesCherrill
0
28K
Member Avatar for guest_1

> 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 …

Member Avatar for JamesCherrill
0
329
Member Avatar for Mirty

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?

Member Avatar for JamesCherrill
0
202

The End.