-
Replied To a Post in update 2D array from txt file
You need something like (pseudo code) while there is more input available read coordinates i and j M[i][j] = 1 -
Gave Reputation to Naheedmir in Mac not detecting USB mouse
The mouse is not an issue. Any mouse and keyboard will work on Mac, so dont worry about it. Go to the device manager and click on mouse properties. Now, … -
Replied To a Post in Method Overloading and Method Overriding in Java
First, those are two completely different concepts. Overloading is a convenience thing. Use it when you have a method that could be used with different paameters, eg an internet thing … -
Gave Reputation to Keith_16 in Hello can anyone help me how to code this I really don't know how to start
A case where inheritance is obviously appropriate. You want a base class of Party from which BdayParty inherits. Different languges have differences in how to do object oriented design. C++ … -
Replied To a Post in Running VirtualBox
> I'm trying to run VirtualBox in Ubuntu. The full report shows that you are running WIndows 7, not Ubuntu. (and... you are running an OS that's past end-of-life support … -
Replied To a Post in Running VirtualBox
Why make this so complicated? Problem: VT-x is disabled. It;s suported by the CPU It's supported by the motherboard He just needs to enable it in the BIOS. [Here](https://support.lenovo.com/us/en/solutions/ht500006) are … -
Replied To a Post in Running VirtualBox
> VT-x is disabled in the BIOS Seems clear enough. Re-boot into your BIOS configuration and enable VT-x -
Replied To a Post in How to generate random number excluding a previously generated number
Fisher-Yates - very nice choice. You should make a note of the different ways in which plays will be requested by the user ("Use Cases"), eg start playing and continue … -
Replied To a Post in How to generate random number excluding a previously generated number
You use the new shuffled array to provide N index values in random order. You use those index values to index into all the other arrays. In other words - … -
Replied To a Post in Adding multiple images to JPanel for dragging and dropping purposes
It looks like the file named on line 29 doesn't exist, or is in some incompaible format. Check out the Oracle documentation at https://docs.oracle.com/javase/8/docs/technotes/guides/lang/resources.html in particular red the section headed … -
Replied To a Post in Read CSV File in a Linked List Java
That's a reasonable start. Some errors to fix, and some functionality to implement. What's your question? -
Replied To a Post in I want to convert my code from python to java
That's going to map pretty closely to the Java equivalents, so whats stopping you? ps: That multi-line string delimited by triple quotes had no equivalent in Java until Java 14 … -
Replied To a Post in why FutureTask's run method use cas?
? If you just have 1 thread, using an executor or not, then there's no concurrency issue. If you create two thread instances with the same FutureTask instance and start() … -
Replied To a Post in Which JDBC Driver
> You may have Java 15 installed, but according to your screenshots, you are using Java 8 It's more bizarre than that. The java version is 1.8 but the compiler … -
Replied To a Post in Cannonball Java
OK, I looked. It's a standard "complete the code" learning exercise. How far have you got? What have you tried? Exactly what help do you need? -
Replied To a Post in Determine if an array is square matrix or not.
If you store it as a 2D array in Java then it's easy. Remember htat a 2D array is really an array of arrays, so all you need is the … -
Replied To a Post in Read a text file & write the duplicate records to another text file in Java
Hi Please post your code in the thread here so pleaple can see it easily. Depending on what your question is you may not need to post the whole thing. … -
Replied To a Post in macOS BigSur anyone?
I was running on the last couple of Betas, and switched to the release version with no regrets. The only problem I hit is that NetBeans crashes on startup, but … -
Replied To a Post in user input to parse information of xml file
At line 48 you have `eElement` so you can use that to test for the ID (or whatever) you are interested in and print or not print accordingly. -
Replied To a Post in I'm Out of Here
Sad, but inevitable. Jim said it all. I'm out too. James -
Gave Reputation to rproffitt in Advanced Network Related Question Regarding Network Namespaces
OK, let's pivot to "protection." Think about packets. Let's say some nasty packets come at your router. The router itself is going to have to stand up to that or … -
Replied To a Post in Why do people still use linux when much better technology is available.
What is the "much better technology"? MacOS - better, but a LOT more expensive Windows - more popular, but not necessarily better. And again you have to pay for it. … -
Replied To a Post in Finding largest number In While Loop
Hi shamsudeen98, welcome to DaniWeb You have posted some code to a topic that has been dead for 9 years! The code itself is full of errors, so why did … -
Replied To a Post in Portal to Search Engine
As an IT professional of course I know not to be an early adopter with a production system. But the man in the street may well have "automatic updates" turned … -
Replied To a Post in Portal to Search Engine
> it’s rare for there to be breaking changes between the last beta and the GM. Indeed. So I'm playing a gig tonight and I'm depending on iPadOS apps for … -
Replied To a Post in Need some info for something I am working on
I'm going with "can be done" - at least in theory 1. Excel supports 1 million rows 2. Even London has (only) 32 thousand streets ( https://www.proviser.com/uk/towns/london/street-map ) 3. Some … -
Replied To a Post in Portal to Search Engine
Re IOS GM/release The reason developers are upset is that every major release breaks something, and until you have the GM you cannot test for regression bugs or other problems. … -
Replied To a Post in Java Programming ( Cashier Question )
Interesting I wait months for a Java question, but I'm not a "Suggested Answerer". Guess I must be really out of favour at DaniHQ. Or maybe it's just that I'm … -
Replied To a Post in How to check internet connection using C# language
Do you have any possible excuse for coding `if (con == true ...` instead of `if (con ...` -
Replied To a Post in code for these two programs
OK, I just finished writing them. Now what? -
Replied To a Post in Why am I getting segmentation fault in my program?I can't figure out why.
Do you have enough address space for 10 biilion long long ints (at least 80GB)? -
Replied To a Post in control reaches end of non-void function [-Wreturn-type]
Thanks for formatting the code, and yes, you're right. -
Replied To a Post in 2-dimensional array as argument
It's commendable that you took the time to reply. However, the topic title and the origional post clearly asks for a discussion of 2-dimensional array *as argument*, and the content … -
Replied To a Post in control reaches end of non-void function [-Wreturn-type]
Yes. The return is inside both a `for` and an `if` block, so either could prevent the return from ever being executed. -
Replied To a Post in control reaches end of non-void function [-Wreturn-type]
Hard to read with no indentation, but it looks like the function at line 27 has its return statement inside an if test, so if the if test fails control … -
Replied To a Post in C++ struct student link list
voogos what you are discussing is called cheating. Lie to your teachers, degrade the efforts of your honest colleagues who actually do the work, waste the chance to learn for … -
Gave Reputation to voogos in Project Title: Student Record & Registration using Linked list
I'm trying to master the Python program now. I have some questions regarding functions. If I had more free time, I would deal with all this on my own. But … -
Replied To a Post in Can Constructor can be private in java
Yes, that's true... but did you have any particular reason for sharing that today? -
Gave Reputation to AndreRet in 2-dimensional array as argument
a Very clear explanation can be found [HERE](https://www.geeksforgeeks.org/multidimensional-arrays-c-cpp/) -
Replied To a Post in Best practice for method with large number of parameters
Following on from fearless' suggestion... I'm not sure about Python, but this looks like a using a *factory*, Typically that's for a constructor, but there's no reason not to use … -
Replied To a Post in Hi... it's me again!
Welcome. Your English is amazing! -
Replied To a Post in vectors: how add vectors with direction?
OK. I'm doing this in 2D to save typing. For 3D just add a Z value. You are at a point X,Y moving in a straight line. That means that … -
Replied To a Post in vectors: how add vectors with direction?
You cannot add a speed and a vector. They are different measures. It's mathematically impossible, like trying to add a length to an area. You *can* add a vector, as … -
Replied To a Post in how to edit my comment after the time limit stops me from editting it?
Which comment are you referring to and what info do you want to remove? There are situations in which a mod can edit for you, provided it's covered by the … -
Replied To a Post in Checkbox to show or hide a button -.-
Your answer is 9 years too late, adds nothing to the discussion, and is one of the worst pieces of code I have seen in some time. You obviously need … -
Replied To a Post in whats the error in the method call in this switch block?
You have a single quote at the end of line 43. For the corect syntax of a switch, with examples, see the Oracle tutorial page [here](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html) ps: You keep creating … -
Replied To a Post in How can I solve it ?
What have you done so far? -
Replied To a Post in Check Python Interpreter Version
> How can I check the Java version from command line. `java -version` -
Gave Reputation to Reverend Jim in Hello everyone. My name is Igor..
Welcome to Daniweb. Quick movie reference - is it pronounced ee-gore, or eye-gore? Bonus points if you get the movie. -
Replied To a Post in Filter by annoyance
If I want to browse latest topics re programming ihave to; open daniweb page click on the menu icon click on proramming click on latest topics (now my list is …
The End.