Posts
 
Reputation
Joined
Last Seen
Ranked #928
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
94% Quality Score
Upvotes Received
23
Posts with Upvotes
8
Upvoting Members
14
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
4 Endorsements
Ranked #397
Ranked #2K
~25.6K People Reached
PC Specs
MB: LGA1155 B75, PCIe/DDR3/SATA3/GLAN/7.1, CPU: Intel i5-3450, RAM: 8 GB DDR3, GPU: AMD Radeon 7770…
Member Avatar for JamesCherrill

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)

Member Avatar for Alok_5
20
3K
Member Avatar for Pobunjenik

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 …

Member Avatar for JamesCherrill
0
435
Member Avatar for Pobunjenik

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

Member Avatar for Pobunjenik
0
685
Member Avatar for Pobunjenik

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 …

Member Avatar for Pobunjenik
0
387
Member Avatar for akash_6

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 …

Member Avatar for TekknoDraykko
0
203
Member Avatar for Pobunjenik

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 …

Member Avatar for sishenyelang
0
1K
Member Avatar for abelLazm

Granted, but your genie has a serious case of Down syndrom. I wish there was a zombie apocalypse.

Member Avatar for James_40
8
9K
Member Avatar for <M/>
Member Avatar for Pobunjenik

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 …

Member Avatar for Pobunjenik
0
320
Member Avatar for jontposton

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();

Member Avatar for jontposton
0
196
Member Avatar for brittney_2
Member Avatar for Pobunjenik

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

Member Avatar for mKorbel
0
454
Member Avatar for Pobunjenik

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 …

Member Avatar for Pobunjenik
0
331
Member Avatar for Pobunjenik

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 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Pobunjenik

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 …

Member Avatar for Pobunjenik
0
474
Member Avatar for blackcathacker
Member Avatar for chdboy

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();

Member Avatar for chdboy
0
204
Member Avatar for Pobunjenik

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

Member Avatar for Pobunjenik
0
363
Member Avatar for Pobunjenik

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 …

Member Avatar for Pobunjenik
0
443
Member Avatar for Pobunjenik

I'd like to see long codes collapse automatically because I think Daniweb would benefit from a tidier thread system. That's all. :)

Member Avatar for Pobunjenik
6
212
Member Avatar for funkey100
Member Avatar for funkey100
0
293
Member Avatar for Pobunjenik

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 …

Member Avatar for Pobunjenik
0
933
Member Avatar for RawrInYoMouth

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.

Member Avatar for Pobunjenik
0
443
Member Avatar for london-G

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 …

Member Avatar for london-G
0
361
Member Avatar for dannyboy.rizaldo
Member Avatar for tux4life
0
136
Member Avatar for agca

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

Member Avatar for agca
0
224
Member Avatar for Pobunjenik

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 …

Member Avatar for Pobunjenik
0
341
Member Avatar for Pobunjenik

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 …

Member Avatar for <M/>
0
104
Member Avatar for Pobunjenik

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 …

Member Avatar for JamesCherrill
0
430