public static void testStrings(){
	       // Learn to use conditional operator instead of if... else statement
	       int a , b;
	       a = 10;
	       b = (a == 1) ? 20: 30;
	       System.out.println( "Value of b is : " +  b );

	       b = (a == 10) ? 20: 30;
	       System.out.println( "Value of b is : " + b );
	       
	       //check the variable type (also works for classes
	       String name="Jimmy";
	       System.out.println("name is a string: "+(name instanceof String));
	    
	       //loop statements same as c++
	       for(int i=0; i<10; i++){
	       	System.out.println("i= "+i);
	       }
	       
	       // Using the number abstract class Integer, String, Double etc.
	       //converting numbers to strings for adding together
	       int myint = 4;
	       System.out.println("x= "+Integer.toString(myint));
	       // OR (more general, probably easier to remember
	       double mydouble=0.5;
	       System.out.println("x= "+String.valueOf(mydouble));
	       System.out.println("x= "+mydouble);
	       
	       // maybe not even neccessary
	       // This is poor convention?
	       int player=1;
	       String player_str="player_"+player;
	       System.out.println(player_str);

	       
	       // maths operators.
	       System.out.println(Math.sqrt(mydouble));
	       //constants
	       System.out.println("e= "+Math.E+" pi= "+Math.PI);

	       String str1="Jimmy";
	       String str2="jimmy";
	       
	       if(str1.compareTo(str2)==0){ System.out.println(str1+"="+str2); }
	       else{ System.out.println(str1+"!="+str2); }
	       if(str1.compareToIgnoreCase(str2)==0){ System.out.println(str1+"="+str2+",ignoring case"); }
	       else{ System.out.println(str1+"!="+str2+"ignoring case"); }
	       
	       // Replacing things in string
	       System.out.println(str1.replace("m", "b"));

	}