22-SE-096 Lab Report 7
22-SE-096 Lab Report 7
import java.util.Scanner;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
scanner.close();
Output:
reverseArray(array);
System.out.println("\nReversed Array:");
printArray(array);
}
}
Output:
return true;
// TODO code application logic here
}
Output:
if (hasRepeatedDigit) {
System.out.println("Repeated Digit(s) found");
} else {
System.out.println("No Repeated Digit found");
}
scanner.close();
}
if (digitSet.contains(digit)) {
return true;
}
digitSet.add(digit);
number /= 10;
}
return false;
// TODO code application logic here
}
Output: