Paracells / stage0-module3-task4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tasks:

1) Types setting.

Complete the code snippet below with corresponding types. Each var type should consume as less as possible e.g.: 2345 - suits to short. Code snippet:

    public class SettingTypes {
        public static void main(String[] args) {
             first = 10_000_000_000L;
             second = 'a';
             third = 5 > 9;
             forth = 12.90434323324342;
             fifth = 12.3F;
             sixth = 1;
             seventh = 129;
        }
    }

2) Int representation.

Print chars :'c', 'h', 'a', 'r' using int representation. Implement program in the following code snippet:

    public class IntRepresentation {
        public static void main(String[] args) {
        }
    }

3) Formula.

Declare all necessary variables and write down the formula using corresponding names (declare those vars before the formula): img_19.png Implement program using the following code snippet:

public class FormulaCreator {
    public static void main(String[] args) {
    }
}

About


Languages

Language:Java 100.0%