Originally Posted by
Ezzaral
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;
}