View Single Post
Join Date: Jan 2007
Posts: 14
Reputation: Magda is an unknown quantity at this point 
Solved Threads: 0
Magda's Avatar
Magda Magda is offline Offline
Newbie Poster

Re: Need help with a very simple Java program

 
0
  #5
Nov 15th, 2007
Originally Posted by Ezzaral View Post
No, posting your homework assignment does not constitute specific questions. You need to make an effort to complete the assignment on your own. If you have difficulties, then post the code and the errors or questions you cannot figure out.
Of course I'd prefer to know how to do it than ask you for a solution.

This is what I've got :

package tma01q1;

public class ISPN
{
private int[] authorId;
private int[] programId;

/**
* Creates a new instance of ISPN
*/
public ISPN(int[] anAuthorId, int[] aProgramId)
{
//here i am not sure how to declare array arguments

}

public boolean isValidLength()
{
while
{
anAuthorId + aProgramID == 6
}
return true;
}

public boolean isAllValidDigits()
{
while
{
(anAuthorID >= 0 && anAuthorID <= 9) && (aProgramID >= 0 && aProgramID <= 9)
}
return true;
}
Reply With Quote