From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1063 invoked by alias); 3 Nov 2005 11:31:26 -0000 Mailing-List: contact mauve-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sourceware.org Received: (qmail 1052 invoked by uid 22791); 3 Nov 2005 11:31:22 -0000 Received: from bay103-f28.bay103.hotmail.com (HELO hotmail.com) (65.54.174.38) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 11:31:22 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 3 Nov 2005 03:31:20 -0800 Message-ID: Received: from 65.54.174.200 by by103fd.bay103.hotmail.msn.com with HTTP; Thu, 03 Nov 2005 11:31:19 GMT X-Sender: theuserbl@hotmail.com From: "theUser BL" To: mauve-discuss@sources.redhat.com Bcc: Subject: Existing testsclasses for "Scanner" ? Date: Thu, 03 Nov 2005 11:31:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-SW-Source: 2005-q4/txt/msg00024.txt.bz2 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