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;
}
}
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) {
}
}
Declare all necessary variables and write down the formula using corresponding names (declare those vars before the formula): Implement program using the following code snippet:
public class FormulaCreator {
public static void main(String[] args) {
}
}