Welcome! Log In Create A New Profile


Assignment 2 - Question 3a

Posted by robbiepapenfus 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Assignment 2 - Question 3a
May 08, 2008 08:47PM
Hi guys,

I currently have 2 classes, MyDate and PerishableItem. These classes are in separate files.

When moving these files to package myprog.multi, do you create a new file for the package and place to the two classes into the new file/package?

Help will be much appreciated.

Anonymous User
Re: Assignment 2 - Question 3a
May 09, 2008 04:21PM
first all your classes should start with " package myprog.multi; " then to compile do the following:
" %%%> javac MyDate.java Perishable.java Test.java "then yo can know run your Test file alone e.g:" %%%> java Test " Enjoysmoking smiley
avatar Re: Assignment 2 - Question 3a
May 09, 2008 05:52PM
Remember that your files must be in the same folder and the "end" should be *\myprog\multi\

I still say, get netbeans and spend your time coding!thumbs up
Sorry, only registered users may post in this forum.

Click here to login