public class FloatingPointExample { public static void main(String[] args) { float pi = 3.14f; double e = 2.718281828459045; System.out.println("Pi: " + pi); System.out.println("Euler's number: " + e); } }