🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10390

Problems when adding the two numbers 214483646 and 2....Why..Why..Why..Please help me

#10390
From: xxx
Date: Tue, 21 Sep 1999 00:00
28 lines
1157 bytes
// 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();

 }
}
Technical Details
Message-ID: <7s7ka9$nrs5@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,59bbda2e56a1fa74,start
X-Google-Attributes: gid111d45,public
From: "xxx" <@slagehs.dk>
Subject: Problems when adding the two numbers 214483646 and 2....Why..Why..Why..Please help me
Date: 1999/09/21
Message-ID: <7s7ka9$nrs5@forums.borland.com>
X-Deja-AN: 527766625
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300