online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ public class Main { public static long getUniqueId(double lat,double lon) { long lat_int = (long) (lat * 10_000_000); long lon_int = (long) (lon * 10_000_000); long val=Math.abs((lat_int << 16 & 0x1ffff0000L) | (lon_int & 0x0000ffff)); val = val % Integer.MAX_VALUE; System.out.println(val); return val; } public static void main(String[] args) { getUniqueId(44.6212179,-75.696319); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



Program is not being debugged. Click "Debug" button to start program in debug mode.