- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 23
- Posts with Upvotes
- 8
- Upvoting Members
- 14
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- PC Specs
- MB: LGA1155 B75, PCIe/DDR3/SATA3/GLAN/7.1, CPU: Intel i5-3450, RAM: 8 GB DDR3, GPU: AMD Radeon 7770…
Re: As a rookie coder, I'd like to contribute to the list: 1. Rock/Paper/Scissors 2. The Game of Life (by John Conway) 3. Project Euler (google it) | |
Hi, so I've got this multithreaded server which correctly waits for clients and assigns them to a worker thread. From there, the client is sent an object `Packet` which contains variables `Player` and `Round` (simplified, it contains more data but these are the most important). I'm building a simple top … | |
So I'm building this pretty simple top trumps card game as part of an assignment. I have the game logic built, the swing GUI is in place and I plan to do all the calculation on the server app and have it update the client up with the game's state, … | |
Hi! Straight to the problem: I'm building this server application which will monitor SQL databases. I want it to remember any number of connections so I've made a few methods which I thought would do the trick, except they don't. The program should add any new SQL connection to a … | |
Re: As a current student myself, I guess he needs help writing a loop to print what he posted. I'll get you started by explaining the FOR loop. That loop cosists of 4 parts: 1. The initial position of your loop 2. The condition which signals the end of your loop … | |
I've managed to construct a working code for John Conway's Game of Life. Now I wish to GUI-ize it. My only problem is printing a matrix. I want a huge text field to print "_" for no life and "X" for life in each cell (much like I did in … | |
Re: Granted, but your genie has a serious case of Down syndrom. I wish there was a zombie apocalypse. | |
| |
Hi everybody, I'm back and I bring problems. :D I've done a fair bit of research - I know Android can't run JRE 1.7, and I know JRE 1.7 is needed to get Java to read SQL. I've got this project that says I need to make a way for … | |
Re: You need to save the returned value from flipcoin() into an integer. Because right now, you're just generating a value and then completely forgetting it. Try something like: int coin = flipcoin(); | |
Re: Please mark this thread as solved. | |
I've got a JTable called chances_T full of doubles ranging from 0 to 100. I'm trying to set the background color of each cell based on the cell's value. So I built a custom cell renderer: class CustomRenderer extends DefaultTableCellRenderer { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, … | |
Hello dear codegurus! I've been working on a pet project of mine for 3 weeks now, and I think it is ready to be released into the open! However, just for cosmetic purposes, I would **LOVE** to add an icon (both for the application and in the upper left corner … | |
Hi everyone! So, I hereby hope to show that I've made progress in coding java (largely due to the help of this great community). I want to thank everyone for dealing with me (especially James). :) The goal: The code below is supposed to seed a layout of boats into … | |
Hello! I've been busy passing exams, but now I'm free to code around again. So, in my usual style! **The goal:** I've been playing some Battlefield 3 during study breaks, and I've often been pissed off by BF3's autobalance mechanism. It's bad. Horrible. It makes me sad. I usually have … | |
Re: I believe you need to create an object of the class you want to use in main. More detail [here](http://answers.yahoo.com/question/index?qid=20081002075522AABZmkQ). yourClassName objectName = new yourClassName(); | |
Hi, thanks for looking at this thread. :) **The goal:** I have this 2D boolean array (from my [decoder](http://www.daniweb.com/software-development/java/threads/452559/decoder-simulatorcalculator-complement-of-2-problem) thread). I managed to write a method that goes through the rows and appends a '1' or a '0' to a string based on what's in the array (1 for true, … | |
Hi! It's me again and [this](http://en.wikipedia.org/wiki/Decoder) is a decoder! **The goal:** And I'm trying to make a program that solves logical problems related to the decoder device. For that I need a loop that write true/false into a boolean[][] based on the rules. Say we have a decoder with 3 … | |
I'd like to see long codes collapse automatically because I think Daniweb would benefit from a tidier thread system. That's all. :) | |
Re: I think you'd be better off using [Stencyl](http://www.stencyl.com/). | |
Allright. It's me again. :D This time, I'm making an alarm clock program. I've already completed the bit that gets and displays the system time: Date vrijeme = new Date(); int sati = vrijeme.getHours(); int minuti = vrijeme.getMinutes(); int sekunde = vrijeme.getSeconds(); Also made a method that compares that time … | |
Re: In FOR loops, it's alwas good to use yourArray.length instead of a number in FOR's condition. As for your output, try generating line 56 into a String before you showMessageDialog it. | |
Re: I have a similar problem. I used to be able to run .jar without any problems, but ever since I installed the Nokia PC suite, I can't run my .jar-s. The suite automatically associated itself with the .jar-s, so I re-associated them with javaw.exe (found in C:\Program files (x86)\Java\jre7\bin\javaw.exe). That … | |
Re: I wonder, was the post above a Jedi mind-trick or am I too optimistic. | |
Re: I'm new in this, and my college tutor told us to stich with NetBeans (which has worked nicely so far). We're still pretty much doing noob stuff. Could you please explain what you ment by "binding yourself to IDE is bad"? | |
This is based on John Conways Game of Life, a simple yet awesome code that simulates life. Rules are simple, if a cell has less then 1 or more then 4 living cells next to it, the cell dies. An empty cell with exactly 3 living cells next to it … | |
Oh mighty Sages of the Code, I bring before you my humble self, a commoner among the many. I wish to become an Apprentice of the Code, for I have witnessed it's powers to create and destroy. Please accept my membership in the Academy of Java, where I may unlock … | |
Hello, I'm Mirza and I'm in the first semester of an IT university. I like to experiment with Java, and occasionally I run into problems. Now, I've been visiting daniweb for quite a while now, and I've always found solutions to my problem, but this particular problem I just can't … |