Added a Kotlin variation.

This commit is contained in:
Rhinemann 2023-05-07 23:14:50 +03:00
parent a97f742be2
commit 5ca9ab6c17
1 changed files with 0 additions and 1 deletions

View File

@ -3,7 +3,6 @@ import java.util.Scanner;
public class lab_1 { public class lab_1 {
public static int protectedInput(String variableToRead, Scanner input) { public static int protectedInput(String variableToRead, Scanner input) {
int readVariable;
do { do {
try { try {
System.out.printf("Enter %s: ", variableToRead); System.out.printf("Enter %s: ", variableToRead);