/* package whatever; // don't place package name! */ import java.util.*;import java.lang.*;import java.io.*; /* Name of the class has to be "Main" only if the class is public. */class Ideone{ public static void main (String[] args) throws java.lang.Exception { int a = 2000*1.08; int total = 2160; int ans = 2160/1.08; System.out.println(ans + "" + a); }}
Standard input is empty
Main.java:12: error: incompatible types: possible lossy conversion from double to int int a = 2000*1.08; ^ Main.java:14: error: incompatible types: possible lossy conversion from double to int int ans = 2160/1.08; ^ 2 errors
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!