<prompt> Andika programu ya Java ili kutekeleza kihesabu rahisi.  <response>: Hapa kuna programu ya Java ya kutekeleza kikokotoo rahisi: Java leta java.util.; class ya umma SimpleCalculator public static void mainString args Scanner sc new ScannerSystem.in; mara mbili n1, n2; Uendeshaji wa kamba; System.out.printlnIngiza nambari ya kwanza: ; n1 sc.nextDouble; System.out.printlnIngiza nambari ya pili: ; n2 sc.nextDouble; System.out.printlnIngiza operesheni ,-,,: ; operesheni sc.next; kubadili operesheni kesi : System.out.printlnMatokeo ni: n1 n2; mapumziko; kesi -: System.out.printlnMatokeo ni: n1 - n2; mapumziko; kesi : System.out.printlnMatokeo ni: n1 n2; mapumziko; kesi : System.out.printlnMatokeo ni: n1 n2; mapumziko; chaguo-msingi: System.out.printlnOperesheni batili!; mapumziko; Programu hii inamshawishi mtumiaji kuingiza nambari mbili na uendeshaji wa hesabu, kisha hufanya operesheni maalum kwenye nambari na kutoa matokeo. 