在检查示例precommit钩子时,它详细说明了钩子是通过参数传递的信息执行的,看起来也是通过STDIN传递的。# [2] TXN-NAME (the name of the txn about to be committed)# [STDIN] LOCK-TOKENS ** the lock tokens are passed via STDIN.捕获参数是微不足道的,但是程序如何捕获STDIN
这是我的密码: Scanner stdin = new Scanner(System.in); System.out.print("Please enter the length of the array: ");
arrayLength = stdin.nextIntSystem.out.print("Invalid input, please enter a positive i