1、首先打开Visual Studio Code
2、新建一个Example2.java文件
3、导入Scanner包
4、编写main函数
5、实例化Scanner对象
6、获取输入的值
7、判断奇数和偶数
8、打印结果