Skip to main content
gamedev.net
🔒 Locked

[java] cs1.Keyboard?

Started by Lucky Ace Card Sep 18, 2006 at 11:56 PM 1 replies 800+ views
Original Post
Lucky Ace Card
Lucky Ace Card
I'm looking through some of my computer science assignments, getting them done ahead of time. I stumbled across an assignment that mentioned getting user input by using cs1.Keyboard's readInt(). Now, is that way of getting input outdated? So far I've used the java.util.Scanner method. Is cs1.Keyboard even used anymore? Thanks for any help.
aidan_walsh
aidan_walsh
I've never heard of cs1.Keyboard until now. From what I can tell from Google, cs1 is a basic utility package for helping hide the implementation details of how to get input from a student studying Computer Science courses, correct?

Use what you are comfortable using, unless you are specifically told that you have to use a certain package to get input. In the wild, the cs1.Keyboard class (if I cam correct about it) would never be used.
www.aidanwalsh(.net)(.info)
Lucky Ace Card
Lucky Ace Card
Alright, thanks for the help. I'll just tell my teacher I'm more comfortable using Scanner, and it seems like a better method.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.