Object-oriented programming in Java (Tunku Abdul Rahman University College).
Author: Lui Yong Sheng (DCO2 DD3)
Tutor: Ashvini Devi A/P Krishnan
I've preset the build environment. You only need to change the jdkPath
in .vscode\launch.json
and command
in .vscode\task.json
to the java.exe
and javac.exe
on your machine.
-
Scanner input not working in Visual Studio Code Debugger Console.
Solution:
If you need to input data from keyboard, you can use terminal to run the code by typing
java P3Q3
(According to the file name) after you've build and compiled the java code. -
Java debug type not found.
Solution:
You need to install the
donjayamanne.javadebugger
extension to debug and compile your code.Install : https://marketplace.visualstudio.com/items?itemName=donjayamanne.javadebugger