I think its a fairly broad question since there are some benefits to windows over linux from a development perspective. However I personally have used debian based linux distro's for the past few years I would say to anyone to choose the right tool for the right job.

However some of the benefits of linux may be :

  • Can be lightweight - Some linux distro's are extremely small so can be fully functional on older hardware
  • Customizable - Most required services are extremely flexible and can be removed and or modified very easily if source code is available
  • Package Management and software installation - Most fully fledged desktop distro's offer an out of the box package manager to keep software installation simple for new users and allow access to a huge amount of readily available software with one click, or using the terminal commands.
  • Open source - Usually, Most Distributions consist of packages that can be easily found and modified and so most aspects of the whole user experience can be changed

I looked into this, but i cannot find a "handle" method for interface ItemListener at all. The oracle documentation says it contains only 1 method : http://docs.oracle.com/javase/7/docs/api/java/awt/event/ItemListener.html
Also the second choice's listener is attached to a checkbox not a choice so they are inherently different right away...

To implement an itemlistener interface you would have implement its abstract method like:

ItemListener itemlistener = new ItemListener() {

            public void itemStateChanged(ItemEvent e) {


A good examples of a complete implementation of an itemlistener attached to a radio button can be found here : http://examples.javacodegeeks.com/desktop-java/awt/event/itemlistener-example/

So i cannot say which is better, but if i had to choose how i would add an item listener to a choice i would probably do something like :

Choice c=new Choice();
c.add("First Choice");

c.addItemListener(new ItemListener()
        public void itemStateChanged(ItemEvent ie)
        System.out.println("Your choice was"+c.getSelectedItem());

Im not really sure i can answer the question without knowing what the handle method does, but i hope this helps in some way.

d coding, feel free to ask some specific questions

Theres a whole lot of theory and multiple methods of encryption and decryption, including the most efficient to safest and so on. So your question is kind of vague. You also dont state whether you want to only learn how to encrypt images or whether you just need the fucntionality of encrypting without learning how to write an ecrypter. If it is the latter then there are librarys native in java to provide such functionality :
import javax.crypto.Cipher;
import javax.crypto.CipherInputStream;
import javax.crypto.CipherOutputStream;

... and most other imports in that package are related to encryption, however will require some reading on its methods to learn how to use. A good place to start would be here :
if you havent already googled and found it.

As for a working example the closest too a working one i found was :

however, its not exactly an extensive example or by any means reveal the full use of what you'd really want. Id recommend mainly studying the crypto package and its methods and become familiar with some of the standard encryption algorithms if you are really interested in such things, if you just need the methods existing in java its probably not an area you'd want to spend a lot of time studying.

hmmm, the behind any game is a loop. Including 2d and 3d games and even text based games. For a very simple text based game
your main method is probably the way it should be. However i would recommend implementing seperate functions for certain parts of your game that are used often. Such as an add player function to instantiate a new player. If you want to understand the basics of a game i would recommend looking around stuff like this :

Whilst its in android it outlines the fundamentals such as recieving input,updating and incase of 3d or graphical contexts rendering. All in all a game really is only a loop.

Pulling on an example from wikipedia :

"while( user doesn't exit )
check for user input
run AI
move enemies
resolve collisions
draw graphics
play sounds
end while"

Outlines the basis for most games on the market, There are a lot of examples but for a text game its really along the lines of what you already have.

your name?");
name = scanner.nextLine();

SYSOUT:("Hello Welcome To The Game");
player newPlayer = new player("", 150, 20, 100, 0);