Still though, it seems that if I exhaust the possibilities (throw away each grid and start a new one) eventually I'll get a grid that adheres to the guidelines and have myself a randomly generated...
Type: Posts; User: Leiferson
Still though, it seems that if I exhaust the possibilities (throw away each grid and start a new one) eventually I'll get a grid that adheres to the guidelines and have myself a randomly generated...
I figured it out. It's fail logic. For instance, while filling a 9 x 9, 2 dimensional array of integers 1 - 9 there's a high probability that this problem occurs:
123456789
987645321
79856423x
...
I've been trying to figure this out all night. I started on this sudoku program and for some reason it's in an infinite loop. Basically, I'm using Math.random() to generate integers and collecting...
Worked like a charm. Now that makes sense. It fooled me how it was doing it intermittently though. Also, calling pack scrunched my
window up too small to see any of my components. It's not causing...
For learning purposes, I made a driver program for a
Counter class. All it does is increments and decrements
by integer. I decided to turn the driver into a GUI. But,
I'm having output problems....
import java.util.Scanner;
public class Exercise03_11 {
public static void main(String args[]) {
int days = 31;
Scanner input = new Scanner(System.in);
String[] monthArray =...
I'm currently a computer science major and have been working/playing with computers since the early 90's.
I've been picking up programming languages fairly fast, but am only in the infancy of my...