0

Change the CUI program into java GUI or graphical user interface, choice change into button click

package met; import java.util.Scanner; public class Abarochomonten { public static void main (String [] args ) { Scanner sc= new Scanner (System.in); System.out.println(" For Java tutoral Enter 1\n For Java program Enter 2\n"); int c; c=sc.nextInt(); switch(c) { case 1: System.out.println("Java is a general-purpose,\n object-oriented programming language"); /*designed for having lesser implementation dependencies.");*/ break ; case 2: System.out.println("Check even or odd number"); } }}

28th Aug 2021, 5:21 PM
Chalacho
1 ответ