-
Gave Reputation to jassonadder in Java Coin Flip Program
Hey! You're on the right track with your idea—it’s a great beginner project to practice loops, input, and class methods in Python. Here’s a sample program that does exactly what … -
Gave Reputation to Sofiia in Peer to Peer File Transfer application, TCP or UDP to use?
When implementing peer-to-peer file transfer, the choice of protocol depends on your specific requirements. Here's a brief explanation of TCP and UDP to help you make an informed decision: TCP … -
Gave Reputation to Dani in Which programming languages and frameworks are best suited for real estate?
For the web (since that’s my area of expertise): It depends on what the app will do. Certain programming languages and technology stacks are more suited for things like real-time … -
Replied To a Post in Dani is going to be MIA
We may have had our disagreements in the past, but this is one thing I wouldn’t wish on my worst enemy. With all my heart I wish you the strength … -
Replied To a Post in Is AI Generated Code copyrightable? Maybe not.
So if I use Excel to create an interesting spreadsheet Microsoft should be the copyright owner? -
Replied To a Post in What are the 2 main types of software?
> What are the 2 main types of software? Software with known bugs, and software with bugs we don’t know about. -
Replied To a Post in BufferedReader Skips first line
My mistake (typing while watching to), you need to declare String line before the while loop. -
Replied To a Post in BufferedReader Skips first line
Just FYI the “standard” way to code this (saving duplicated reads and tests) is simply while ((String line = br.readLine()) != null) { // process line } -
Replied To a Post in Why destructor doesn't work
I’m no Python expert, but my understanding is that __del__ is called when and if the object is deleted by the garbage collecter. This may be some time after the … -
Replied To a Post in two java springboot projects (one jar project referenced by another project
Place the database jar somewhere in your CLASSPATH, and`import` the classes you need in the other projects do you can use them directly. -
Gave Reputation to Dani in I need help finishing this game
I wish I could help you but unfortunately I haven't looked at C++ code in two decades. One thing that I would recommend you do moving forward is comment your … -
Replied To a Post in How to detect window minimize
Did you set the JFrame as the owner of the dialogs when creating them? -
Gave Reputation to Varsha_Sharma in Benefits for Bulk mailing
(1) Cost-effectiveness: Sending a large number of emails at once can be more cost-effective than sending individual emails, especially if you are using a bulk email service that offers discounts … -
Replied To a Post in Why JFormatedTextField replaces decimal with comma
Some countries including France where I live use a . between thousands and a , before the decimals. Java localisation will automatically default to display numbers in the correct format … -
Replied To a Post in java project 2023 fff
I asked how we could help. ‘Just complete it’ isn’t help. Instead of getting some points for completing the basic stage you face ZERO points (at best) for cheating. Think … -
Replied To a Post in java project 2023 fff
We do try to be helpful here, but it’s hard to see what we could do in this case. What help would you like? -
Replied To a Post in java project 2023 fff
Be realistic. Your tutor expects this to take weeks of work for a team of 2. There’s no possibility of doing anything by ‘tomorrow’. Spend your time thinking about plan … -
Replied To a Post in array declaration c++
Don’t know if this helps but… If your compiler has `__STDC_NO_VLA__` = 1 then it doesn’t support variable length arrays (C++ 11) -
Replied To a Post in How can i get this source code using do while loop?
> How can I get this source code? It's a learning assignment. You get the source code by writing it yourself - that's how you learn. If you are trying … -
Replied To a Post in Java game not loading
The code you posted looks ok. Maybe the problem is in the GamePanel Class? Maybe it’s this scenario… A JPanel class adds some children and that triggers a repaint on … -
Replied To a Post in Hi everyone, I'm Richards_1
> Dissertation helper Does that mean you help people cheat? Shame on you. -
Replied To a Post in Excel, Find Number Combinations that Total a Sum
I guess you could use Visual Basic for Applications (VBA) in Excel - my Java code is simple enough that you should be able to translate into vba without too … -
Replied To a Post in Excel, Find Number Combinations that Total a Sum
If you're still interested... Here's a little runnable demo I hacked up in Java to show how the recursive solution works: int[] values = {1, 2, 9, 3}; int target … -
Replied To a Post in Excel, Find Number Combinations that Total a Sum
I doubt that you will find an off-the-shelf solution, nor will you find an easy one. You need to traverse a tree with nodes for each value x1, x2, x3 … -
Replied To a Post in java
Cyrennex has now started their own topic for this (quite rightly). https://www.daniweb.com/programming/software-development/threads/539204/anyone-can-answer-to-this-question#post2289355 -
Replied To a Post in Anyone can answer to this question??
Ok. You have started, so that’s good. How far did you get and what’s stopping you from progressing further? -
Replied To a Post in java
You write a Java program as specified in the assignment. Have you even tried to start writing? -
Replied To a Post in Which should I use } else { or exit; ?
And another thing… If the if block exits, then the “else” following it is redundant. -
Replied To a Post in Which should I use } else { or exit; ?
I’m a massive believer in the importance of good naming. If I see a call to `show_error` then I’d expect that to show the error and return, not shut down … -
Gave Reputation to Reverend Jim in Which should I use } else { or exit; ?
If `exit` does what I think it does then aren't you still short-circuiting by wrapping it in another function? -
Replied To a Post in Which should I use } else { or exit; ?
> It's not good practice to short circuit the page by calling exit; in the middle of an if-else block. So you call a separate method that calls exit for … -
Replied To a Post in Python Maze solver general function
Any `true` on the top/right/bottom/left edge is an entry or exit, so you just need to loop round those locations looking for two `true` values -
Replied To a Post in Derby DB is not working on mac.
Try it without the $( export DERBY_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/db -
Gave Reputation to cheejhai in Derby DB is not working on mac.
Do you mean the Java 7 that was released in 2011? Last public updates 2015? With all its unfixed bugs and security vulnerabilities? The 7 that's so old it doesn't … -
Replied To a Post in Derby DB is not working on mac.
First: you are still using Class.forName. It’s obsolete. See my previous post on the subject. Second: looks like the Derby jars are not in the class path on the real … -
Replied To a Post in DoublePrecision
Just out of curiosity, what are you modelling that needs an accuracy like 1 part in 10^20? -
Replied To a Post in Why can't Netbeans 8.2 find JPL7?
Why those old old versions? I'm not surprised that they're not running on Windows 10. The current Netbeans is version 15, not 9 The current JDK is version 19, not … -
Replied To a Post in How can you make your information credible?
For me “true” means “consistent with reality” (ie the <everything> in my previous). Because our understanding is imperfect we are unable to determine truth with any certainty. It’s not the … -
Replied To a Post in How can you make your information credible?
For me it’s a statement of faith that we exist in a single internally consistent <everything> (Universe, nature, simulation …). Statements about that <everything> are true or false solely dependent … -
Replied To a Post in How can you make your information credible?
> . Colour is not a property of an object. A surface will absorb or reflect light according to the wavelength of the light and the physical properties of the … -
Replied To a Post in I would like to code this python code and change it to Java
You’ll find what you need in Java’s Random class (Java.util.Random) -
Replied To a Post in converting python code to java?
A lot depends on whether you are doing a simple conversion or producing a Java equivalent program. Eg simple conversion would just use classes where a more natural Java version … -
Replied To a Post in converting python code to java?
The one thing in this that could trip you up is that Python’s [] do not translate to Java’s [] arrays. Java arrays do not support list-like operations such as … -
Replied To a Post in Canadian and US postal code Java
You can use Regex , but depending on where you are in the learning curve it may be simpler to do it directly… There’s a String method that converts a … -
Gave Reputation to odeskavita in Java code to open application(.exe file) placed inside eclipse framework
So what I understood from your question is what are the alternatives to open a new terminal without the use of ctrl+ alt+ t. So, there are quite several methods … -
Replied To a Post in Tech has failed us (a rant)
> Why does your dishwasher need wifi? It doesn’t. But it comes with it anyway. -
Replied To a Post in Tech has failed us (a rant)
Me too. Over 20 devices connected to the wifi, many with no keyboard and tortuous setup procedures (not just printer and tv, but dishwasher, oven, Tesla charger etc). No way … -
Replied To a Post in minimum array jumps to reach the end
Backwards step? Consider 1 x x x 3 1 x x x3 Shortest solution requires the back step from 1 to 3 -
Replied To a Post in minimum array jumps to reach the end
Consider the array 1 2 3 4 5 2 6 7 8 3 your algorithm will find the 2 and jump, missing the better solution jumping on 3. you need … -
Gave Reputation to Reverend Jim in Help writing a java anagram solver
Kewl. In Python that's a simple dict with key=sorted and val=list.
The End.