The Artima Developer Community
Sponsored Link

Java Answers Forum
invoking class methods

1 reply on 1 page. Most recent reply: Mar 23, 2003 10:02 AM by Rich Burgis

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Just

Posts: 6
Nickname: rusty
Registered: Mar, 2003

invoking class methods Posted: Mar 22, 2003 8:37 PM
Reply to this message Reply
Advertisement
I have imported the follwing packages, but can't use them why?
I have correctly named all the int's, but can't get the Keyboard.readInt to work - why?

import java.lang.*;
import java.util.*;
import java.text.*;
public class PO3Main

they are suppost to do this.

System.out.println ("Enter the score for (Round 1)");
Ram1 = Keyboard.readInt ( );


Rich Burgis

Posts: 17
Nickname: songbird
Registered: Mar, 2003

Re: invoking class methods Posted: Mar 23, 2003 10:02 AM
Reply to this message Reply
You seem to feel that there is a Keyboard class. What package is it in.

I would use System.in which is an InputStream. Look up InputStream in the API reference (available on-line from Sun) and the various Reader classes that can be built from InputStreams.

Good Luck
Rich

Flat View: This topic has 1 reply on 1 page
Topic: new machine Previous Topic   Next Topic Topic: Run Servlet in Tomcat

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use