New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Mable Windler


Mable Windler
GPA 3.53

Mohamed Aboutabl

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Mohamed Aboutabl
Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 1 page Class Notes was uploaded by Mable Windler on Saturday September 26, 2015. The Class Notes belongs to CS 139 at James Madison University taught by Mohamed Aboutabl in Fall. Since its upload, it has received 8 views. For similar materials see /class/214130/cs-139-james-madison-university in ComputerScienence at James Madison University.




Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/26/15
Keyboard c s l A public class derived from Obj ect which provides various static methods for obtaining user input from the keyboard standard input Problems encountered during the reading process including format errors are handled internally and default values are returned Error messages indicating these problems are printed to standard output by default but may be repressed Methods public static String readString Reads and returns a string to the end of the line from standard input public static String readWord Reads and returns one spacedelimited word from standard input public static boolean readBoolean Reads and returns a boolean value from standard input Returns false if an exception occurs during the read public static char readChar Reads and returns a character from standard input Returns MINiVALUE if an exception occurs during the read public static int readlnt Reads and returns an integer value from standard input Returns MINiVALUE if an exception occurs during the read public static long readLong Reads and returns a long integer value from standard input Returns MINiVALUE if an exception occurs during the read public static float readFloat Reads and returns a oat value from standard input Returns NaN if an exception occurs during the read public static double readDouble Reads and returns a double value from standard input Returns NaN if an exception occurs during the read public static int getErrorCountO Returns the number of errors recorded since the Keyboard class was loaded or since the last error count reset public static void resetErrorCount int count Resets the current error count to zero public static boolean getPrintErrors Returns a boolean indicating Whether input errors are currently printed to standard output public static void setPrintErrors boolean flag Sets the boolean indicating Whether input errors are to be printed to standard input Program Demonstrating use of the Keyboard class Echojava Author LewisLoftus Demonstrates the use of the readString method of the Keyboard class import cslKeyboard public class Echo


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Jennifer McGill UCSF Med School

"Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over $500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.