From: "theUser BL" <theuserbl@hotmail.com>
To: mauve-discuss@sources.redhat.com
Subject: Existing testsclasses for "Scanner" ?
Date: Thu, 03 Nov 2005 11:31:00 -0000 [thread overview]
Message-ID: <BAY103-F28728808A2570AFAC73792A9610@phx.gbl> (raw)
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
next reply other threads:[~2005-11-03 11:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-03 11:31 theUser BL [this message]
2005-11-05 18:38 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY103-F28728808A2570AFAC73792A9610@phx.gbl \
--to=theuserbl@hotmail.com \
--cc=mauve-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).