mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2026-04-20 04:51:51 +03:00
Added a Kotlin variation.
This commit is contained in:
@@ -3,7 +3,6 @@ import java.util.Scanner;
|
||||
public class lab_1 {
|
||||
|
||||
public static int protectedInput(String variableToRead, Scanner input) {
|
||||
int readVariable;
|
||||
do {
|
||||
try {
|
||||
System.out.printf("Enter %s: ", variableToRead);
|
||||
|
||||
Reference in New Issue
Block a user