Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpbb_feed_base has a deprecated constructor in /home/poorsh5/public_html/ThePub/feed.php on line 428

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpbb_feed_forum has a deprecated constructor in /home/poorsh5/public_html/ThePub/feed.php on line 844

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpbb_feed_topic has a deprecated constructor in /home/poorsh5/public_html/ThePub/feed.php on line 973
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /feed.php on line 173: Cannot modify header information - headers already sent by (output started at /feed.php:428)
[phpBB Debug] PHP Notice: in file /feed.php on line 174: Cannot modify header information - headers already sent by (output started at /feed.php:428)
RuneVillage.com Where Gamers Escape! 2008-10-08T08:14:28-06:00 http://www.poorshark.com/ThePub/feed.php?f=16&t=427938 2008-10-08T08:14:28-06:00 http://www.poorshark.com/ThePub/viewtopic.php?t=427938&p=3512119#p3512119 <![CDATA[Re: Java coders look here!]]>
import java.util.Random;

Random difference = new Random( );
int diff = difference.nextInt(100) -50;

To make it make it produce a differnt sized rectangle on each run of the program - Probs will get extra marks

If you need any more help just post

Statistics: Posted by reggie — October 8th, 2008, 8:14 am


]]>
2008-10-07T23:28:47-06:00 http://www.poorshark.com/ThePub/viewtopic.php?t=427938&p=3511985#p3511985 <![CDATA[Re: Java coders look here!]]>
import java.awt.Rectangle;

public class AreaTester {

  public static void main (String[] args) {
     int x = 0; // Rectangle X location
     int y = 0; // Rectangle Y location
     int width = 0; // Rectangle width
     int height = 0; // Rectangle height

     Rectangle rect = new Rectangle(x, y, width, height); // Constructs the Rectangle object
     // Your code goes here
   }
}


Hope that helps. :)

Statistics: Posted by Ravn — October 7th, 2008, 11:28 pm


]]>
2008-10-07T19:52:21-06:00 http://www.poorshark.com/ThePub/viewtopic.php?t=427938&p=3511918#p3511918 <![CDATA[Java coders look here!]]>
Basically my dilemma is that I've been taking a Java Programming class since the start of the semester, and I have a couple of assignments due tomorrow. Only problem with this is that I haven't been paying attention and I have no idea how to do them. I'm not asking you guys to do the assignments for me, although if you did, that would own, and you can probably do it 10 times faster than I ever could.

If anyone can help me out let me know, here are the assignments.

Assignment 1:

Write an AreaTester program that constructs a Rectangle object and then computes and prints its area. Use the getWidth and getHeight methods. Also print the expected answer.

Assignment 2:

Write a PerimeterTester program that constructs a Rectangle object and then computers and prints its perimeter. Use the getWidth and getHeight methods. Also print the expected answer.

Thanks guys,

Prule :mrgreen:

Statistics: Posted by prule84 — October 7th, 2008, 7:52 pm


]]>