Coding help

For some reason this code will not update the count value or print the value at all can someone please give me some advice.

import java.util.Random;

import java.io.*;

public class InputRandom

{

public static void main (String[]args)throws IOException

{

//int y = 6%3;

//System.out.println(y);

BufferedReader console = new BufferedReader(new InputStreamReader(System.in));

System.out.println("How many nodes does the graph have?");

String input = console.readLine();

int x = Integer.parseInt(input);

int i = 1;

Random generator = new Random();

int r = generator.nextInt(2);

//int count = 0;

//count++;

//System.out.print(count);

int[] array = new int[x];

//System.out.println(r);

ArrayCheck arrayCheck = new ArrayCheck();

while( arrayCheck.isFull(array))

{

int count = 0;

if(i==1 && r==0)

{

i=x;

count = count;

array=i-1;

count=count+1;

System.out.println(r);

arrayCheck.isFull(array);

System.out.print(count);

r = generator.nextInt(2);

}

if(i==x)

{

i= 1;

count=count;

count=count+1;

array=i-1;

arrayCheck.isFull(array);

System.out.print(count);

}

else if(i==1 && r==1)

{

i=i+1;

count=count+1;

array=i-1;

arrayCheck.isFull(array);

System.out.print(count);

}

//System.out.print(count);

while(i == x && r ==1)

{

i = 0;

}

//int s = generator.nextInt(2);

if(i > 1 && r == 0 )

{

i = i-1;

count=count+1;

array=i-1;

arrayCheck.isFull(array);

r = generator.nextInt(2);

}

else if (i > 1 && r==1)

{

i=i+1;

count=count+1;

array=i-1;

arrayCheck.isFull(array);

r = generator.nextInt(2);

}

System.out.println(count);

}

}

}

[2075 byte] By [simmasterp1a] at [2007-11-26 12:21:52]
# 1
Repost your code between [code]...[/code] tags. It makes it much easier to read.
CaptainMorgan08a at 2007-7-7 15:14:17 > top of Java-index,Archived Forums,Socket Programming...
# 2
please repost it inside code tags.Try to track the value of your count value using a debugger, or manually putting up some System.out.println(countValue) lines.=)
Redxxiva at 2007-7-7 15:14:17 > top of Java-index,Archived Forums,Socket Programming...
# 3

Continued here:

http://forum.java.sun.com/thread.jspa?threadID=5114931

I guess it was rocket science for him to just repost it IN THIS THREAD.

Oh, and to the author: I like how you attach 10 dukes to every post you create, with no apparant intent to distribute them. Like you did here:

http://forum.java.sun.com/thread.jspa?threadID=736446

and here:

http://forum.java.sun.com/thread.jspa?threadID=5114931

and on this very thread as well.

Doofus.

warnerjaa at 2007-7-7 15:14:17 > top of Java-index,Archived Forums,Socket Programming...
# 4
...............
Redxxiva at 2007-7-7 15:14:17 > top of Java-index,Archived Forums,Socket Programming...