int day = 4;
String dayName;
switch (day) {
case 1:
dayName = "الأحد";
break;
case 2:
dayName = "الاثنين";
break;
case 3:
dayName = "الثلاثاء";
break;
case 4:
dayName = "الأربعاء";
break;
case 5:
dayName = "الخميس";
break;
case 6:
dayName = "الجمعة";
break;
case 7:
dayName = "السبت";
break;
default:
dayName = "يوم غير صالح";
}
System.out.println("اليوم هو " + dayName);
,