Could anyone tell me what I am doing wrong?
I added a cast operator to a in the division so I can get 3.75.
package com.codegym.task.task10.task1002;
/*
Task No. 2 about integer type conversions
*/
public class Solution {
public static void main(String[] args) {
int a = 15;
// System.out.println("this is A : " + (short) a);
int b = 4;
// System.out.println("this is B : " +b);
float c = ((float) a) / b;
// System.out.println("this is C : " +c);
// System.out.println("this is 1e-3 : " + (float) 1e-3);
double d = a * 1e-3 + c;
System.out.println(d);
}
}