Java/Java_01_DataTypes.java
/** * * * * * * * * * * * * * * * * * * * * * * * **
 *         Java Pocket Card 01 Data Types          *
 *                                                 *
 *              Yoann AMAR ASSOULINE               *
 *                                                 *
 ** * * * * * * * * * * * * * * * * * * * * * * * **/


public class Java_01_DataTypes {


    /***
     * Primitive Data Types 
     */

    // Booleans
    boolean treasureChestIsOpen  = false; 
    boolean engineIsPowered  = true; 

    // Bytes (Storing numbers from -128 to 127)
    byte playerCount  = 98;
    
    // Shorts 
    short playerCharacterPolygons = 25000; 

    // Integers (Storing large number up to 2,147 billion)
    int playerScore  = 1535;
    
    // Long integers (Storing very large number up to 9 quintillion)
    long longOne  = 4580587; 

    // Floats
    float treasureChestDist = 603.35f; // Storing fractional numbers for 6/7 decimal digits

    // Doubles
    double doubleOne = 305.304576f; // Storing fractional numbers for 15 decimal digits

    // Unicode Character
    char playerLetter = 'F';

    
    /***
     * Non-Primitive Data Types 
     */

    // Strings
    String welcomeMessage = "Hi there!";
    String[] fighters =  {"Jin", "Kazuya", "Jun"};


    /***
     * Data Types Operations
     */


    // Type Conversion/ Widening Conversion (converting smaller type to larger type, in this case an int to a double)
    double newScore = playerScore;

    String treasureChestMessage = Float.toString(treasureChestDist);

    // Type Casting/ Narrowing Casting (converting large type to smaller type)
    int treasureChestApproximativeDist = (int) treasureChestDist;


}
