Computer Science, asked by yoge2390, 1 year ago

Please help. Java question.​

Attachments:

Answers

Answered by priyanshududhat
0

Answer:

Refer the code below written in the explanation column!

Explanation:

int day = Integer.parseInt(jTextField1.getText());

switch(day){

case 1:

case 2:

case 3:  

case 4:

case 5: jOptionPane1.showMessageDialog(this, "This Working Day");

break;

case 6:

case 7: jOptionPane1.showMessageDialog(this, "This Off Day");

break;

default: jOptionPane1.showMessageDialog(this, "Invalid Entry");

}

Mark my answer brainliest if you find it helpful!    

Similar questions