0

Here's my program:

import java.awt.Rectangle;


public class RectangleTester
{
public static void main(String[] args)
{
Rectangle r1 = new Rectangle(0, 0, 100, 50);
Rectangle r2 = new Rectangle(0, 0, 100, 50);
r2.grow(10,20);


System.out.println(r1);
System.out.println(r2);
}
}

No error compiling but when I run this is the output

2009-09-14 16:00:29.174 java[414] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xe903, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2009-09-14 16:00:29.175 java[414] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)
java.awt.Rectangle[x=0,y=0,width=100,height=50]
java.awt.Rectangle[x=-10,y=-20,width=120,height=90]

Any ideas?

Edited by happygeek: fixed formatting

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by sneaker
0

Did it run? If so, what was the output? I got that output on both jgrasp and eclipse.

0

Tested on Emacs the output is:
java.awt.Rectangle[x=0,y=0,width=100,height=50]
java.awt.Rectangle[x=-10,y=-20,width=120,height=90]

The same output you have.
What are you expecting to get?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.