Next.
You declared everything as public. The general rule is to keep everything as contained as possible, so future changes are easier, the program is easier to undertand and bugs don't spread too far (the list of reasons is not exhaustive, see EffectiveJava for more details).
In your case, change everything from public to private, only the new startGame() method you might want to set to public. But beware once you do that multiple calls to that method would break your game, so be mindful of that.
Next.
Some of your variable and method names need improvement. By convention, getter methods are called getXyz(), methods which return a boolean are usually named isXyz(). Variable names consisting of one character like 0 and X are very poor, call them playerName0 and playerNameX or whatever. Also try not to use magic numbers or strings - create a well named private static final String or private static final int for them and use that instead. Magic numbers are horribly confusing when trying to understand someones (or your own after a while) code.
In your case, change **everything** from public to private, only the new `startGame()` method you might want to set to `public`. But beware once you do that multiple calls to that method would break your game, so be mindful of that.
Some of your variable and method names need improvement. By convention, getter methods are called `getXyz()`, methods which return a boolean are usually named `isXyz()`. Variable names consisting of one character like `0` and `X` are very poor, call them `playerName0` and `playerNameX` or whatever. Also try not to use magic numbers or strings- create a well named `private static final String` or `private static final int` for them and use that instead. Magic numbers are horribly confusing when trying to understand someones(or your own after a while) code.
Next.
You are keeping track of multiple things during the game, all of which reside in the main method. While this works, as a result you need to pass quite a few arguments to each method you call. You should place some stuff into private class variables, they can be accessed by your no longer static methods no problem.
You are keeping track of multiple things during the game, all of which reside in the `main` method. While this works, as a result you need to pass quite a few arguments to each method you call. You should place some stuff into private class variables, they can be accessed by your no longer static methods no problem.