Java: Input strings with keyboard class

前端 未结 5 840
北海茫月
北海茫月 2020-12-20 10:34

I\'m trying to input information in Java console application but I can\'t seem to run it.

This is how my Java file looks like:


public class Ovn         


        
5条回答
  •  我在风中等你
    2020-12-20 11:18

    1. Java is case sensitive. A class file keyboard will contain a class keyboard not Keyboard.
    2. Do you have imported your class? Or are both classes in the same package?

提交回复
热议问题