public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* Existing testsclasses for "Scanner" ?
@ 2005-11-03 11:31 theUser BL
  2005-11-05 18:38 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: theUser BL @ 2005-11-03 11:31 UTC (permalink / raw)
  To: mauve-discuss

Hi!

I have seen, that in Java 1.5 is something possible like

------
import java.util.*;

public class ScannerTest {
  public static void main(String[] args) {
    String name = new String();
    int number1, number2, number3;
    Scanner console = new Scanner(System.in);

    System.out.print("Please input your name: ");
    name = console.nextLine();
    System.out.print("Hello "+name+", now input a number: ");
    number1 = console.nextInt();
    System.out.print("And a second number: ");
    number2 = console.nextInt();
    number3 = number1+number2;
    System.out.println(number1+" + "+number2+" = "+number3);
  }
}
------

Existing for Scanner already some test-classes?
I wanted only to know it. Sadly I can not myself program for Mauve, because 
I am not a programmer.

The nice thing of Scanner is, that it is since 1.5 possible to input from 
the console without "try", "catch" and other professional programmings.

Greatings
theuserbl


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Existing testsclasses for "Scanner" ?
  2005-11-03 11:31 Existing testsclasses for "Scanner" ? theUser BL
@ 2005-11-05 18:38 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2005-11-05 18:38 UTC (permalink / raw)
  To: theUser BL; +Cc: mauve-discuss

>> Existing for Scanner already some test-classes?

No, not yet.  Scanner also has not yet been written for Classpath.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-05 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-03 11:31 Existing testsclasses for "Scanner" ? theUser BL
2005-11-05 18:38 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).