🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problems when adding the two numbers 2147483646 and 2 in Jbuilder......WHY...WHY....WHY

#10389
From: xxx
Date: Tue, 21 Sep 1999 00:00
28 lines
1159 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: <7s7jtb$nrs3@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,38056fd1a63a0ae6,start
X-Google-Attributes: gid111d45,public
From: "xxx" <@slagehs.dk>
Subject: Problems when adding the two numbers 2147483646 and 2 in Jbuilder......WHY...WHY....WHY
Date: 1999/09/21
Message-ID: <7s7jtb$nrs3@forums.borland.com>
X-Deja-AN: 527764795
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300