Some java errors which I have no idea how to solve
<p><a href="http://imageshack.us/photo/my-images/19/20120129112435.jpg/" rel="nofollow">http://imageshack.us/photo/my-images/19/20120129112435.jpg/</a></p>

<p>Hi all!</p>

<p>Above link contains the error of the codes below.(I need help solving the errors)</p>

<p>( start_game() is me wanting to "call" the main again)</p>

<p>Thanks!</p>

<pre><code>import java.io.*;
import java.lang.*;
import java.util.*;

class P12
{


public static String getWord(int num)
{
String[] word = new String[7];

word[0] = "world";
word[1] = "sunset";
word[2] = "colours";
word[3] = "hello";
word[4] = "leave";
word[5] = "death";
word[6] = "follow";

return word[num];
}


public void printState(int state)
{

if (state == 0)
{
System.out.println(" ");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 1)
{
System.out.println(" ");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 2)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 3)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println("  []           :");
System.out.println("  []           :");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 4)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println("  []           :");
System.out.println("  []           :");
System.out.println("  []           o");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 5)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println("  []           :");
System.out.println("  []           :");
System.out.println("  []           o");
System.out.println("  []         / A \\");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("  []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 6)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println("  []           :");
System.out.println("  []           :");
System.out.println("  []           o");
System.out.println("  []         / A \\");
System.out.println("  []           v");
System.out.println("  []          / \\");
System.out.println("  []");
System.out.println("  []");
System.out.println("[===========]");
System.out.println(" ");
}
}


public static String get_word()
{
Random randomGenerator = new Random();
String c = getWord(randomGenerator.nextInt(7));
return c;
}


public static String validate_input()
{
System.out.println("Enter your guess:");
Scanner user_input = new Scanner(System.in);
String a = user_input.next();

while (a.length() != 1)
{
System.out.println("Please key in only 1 letter:");
System.out.println("");
a = user_input.next();
}
return a;
}


public static List show_puzzle(String e)
{
int d=e.length();
ArrayList list2 = new ArrayList();
for (int i=0;i&lt;d;i++)
{
list2.add('_');
}
System.out.println(list2);
return list2;
}


public static List incorrect_guess(String a,boolean b,ArrayList list1,int man)
{
if (b == false)
{
list1.add(a);
man++;
}
System.out.println("Wrong guess: " + list1);
list1.add(man);
return list1;
}


public static List update_puzzle(boolean s,String a,boolean b,String e,ArrayList list3)
{
ArrayList list4 = new ArrayList();
for (int i=0;i&lt;e.length();i++)
{
char c = e.charAt(i);
char lower = Character.toLowerCase(c);
String s1 = Character.toString(lower);
list4.add(s1);
}
ArrayList list5 = new ArrayList();
if (b==true)
{
for (int i=0;i&lt;list4.size();i++)
{
if (list4.get(i)== a)
{
list3[i]=a;
}
}
}
boolean found = false;
for (int i=0;i&lt;list3.size();i++)
{
if (list3.get(i).equals("_"))
{
s= false;
}
else
{
s=true;
}
}
System.out.println(list3);
list3.add(s);
return list3;
}




public static void main(String args[])
{
String e=get_word();
ArrayList list2 = show_puzzle(e);
boolean s = false;
int man=0;
String state = "playing";
String a = null;
boolean b =false;
ArrayList list1 = new ArrayList();
ArrayList list3 = new ArrayList();

while ("playing".equals(state))
{
if (s==true)
{
System.out.println("");
System.out.println("You won.");
break;
}
if (man==6)
{
System.out.println("Game Over");
state="GameOver";
break;
}
a=validate_input();
b=false;
for (int i=0;i&lt;e.length();i++)
{
char c = e.charAt(i);
char lower = Character.toLowerCase(c);
String s1 = Character.toString(lower);
if (s1 == a)
{
b=true;
}
}
list3=update_puzzle(s,a,b,e,list3);
s=(Boolean) list3.get(list3.size() - 1);
list3.remove(list3.size() - 1); 
list1=incorrect_guess(a,b,list1,man);
man=list1.get(list1.size() - 1);
list1.remove(list1.size() - 1);
printState(man);
}
System.out.println("Enter Y to play again: ");
Scanner user_input2 = new Scanner(System.in);
String y = user_input.next();
if(y.equals("Y"))
{
start_game();
}
}
}
</code></pre>
