Search:

Type: Posts; User: Leiferson

1. Thread: I'm creating a sudoku program that is somehow in an infinite loops.

by Leiferson
Replies
4
Views
681

Re: I'm creating a sudoku program that is somehow in an infinite loops.

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...
2. Thread: I'm creating a sudoku program that is somehow in an infinite loops.

by Leiferson
Replies
4
Views
681

Re: I'm creating a sudoku program that is somehow in an infinite loops.

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
...
3. Thread: I'm creating a sudoku program that is somehow in an infinite loops.

by Leiferson
Replies
4
Views
681

I'm creating a sudoku program that is somehow in an infinite loops.

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...

by Leiferson
Replies
2
Views
816

Re: Funny output

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...

by Leiferson
Replies
2
Views
816

Funny output

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....
6. Thread: Why is my output not right?

by Leiferson
Replies
6
Views
517

Re: Why is my output not right?

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 =...