Article View: borland.public.jbuilder.java.swing
Article #10394Re: Problems when adding the two numbers 214483646 and 2....Why..Why..Why..Please help me
From: Rich Wilkman
Date: Tue, 21 Sep 1999 00:00
Date: Tue, 21 Sep 1999 00:00
51 lines
1987 bytes
1987 bytes
dup post. please see replies to your original post in this newsgroup
(and please use the java.language one in the future; this has nothing to
do with swing)
-Rich
xxx wrote:
>
> // Sum.java til �velse 2
>
> import java.io.*;
>
> public class Sum
> {
> static BufferedReader keyboard = new
> BufferedReader(new InputStreamReader(System.in));
> static PrintWriter screen = new PrintWriter(System.out, true);
>
> public static void main(String[] args) throws IOException
> {
> int a, b, sum; // erkl�ring af variable
>
> screen.println("Indtast 1.tal");
> a = new Integer(keyboard.readLine()).intValue();
>
> screen.println("Indtast 2.tal");
> b = new Integer(keyboard.readLine()).intValue();
>
> sum = a + b;
> screen.println("Summen er\t" + sum);
>
> screen.println("\nTAST ENTER\n");
> keyboard.readLine();
>
> }
> }
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Quality Assurance Manager
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<37E7A5CA.3AE29D2E@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7s7ka9$nrs5@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,59bbda2e56a1fa74 X-Google-Attributes: gid111d45,public From: Rich Wilkman <rwilkman@inprise.com> Subject: Re: Problems when adding the two numbers 214483646 and 2....Why..Why..Why..Please help me Date: 1999/09/21 Message-ID: <37E7A5CA.3AE29D2E@inprise.com> X-Deja-AN: 527853569 Content-Transfer-Encoding: 8bit References: <7s7ka9$nrs5@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing