Click here to Skip to main content
15,914,273 members
Home / Discussions / Java
   

Java

 
GeneralJavascript in livecycle Pin
Incognito121-Sep-11 4:20
Incognito121-Sep-11 4:20 
GeneralRe: Javascript in livecycle Pin
Nagy Vilmos21-Sep-11 4:59
professionalNagy Vilmos21-Sep-11 4:59 
QuestionPlease check my program if it is correct Pin
mastdesi20-Sep-11 16:47
mastdesi20-Sep-11 16:47 
AnswerRe: Please check my program if it is correct Pin
Richard MacCutchan20-Sep-11 21:53
mveRichard MacCutchan20-Sep-11 21:53 
AnswerRe: Please check my program if it is correct Pin
Nagy Vilmos20-Sep-11 23:30
professionalNagy Vilmos20-Sep-11 23:30 
GeneralRe: Please check my program if it is correct Pin
David Skelly21-Sep-11 3:44
David Skelly21-Sep-11 3:44 
GeneralRe: Please check my program if it is correct Pin
mastdesi21-Sep-11 8:33
mastdesi21-Sep-11 8:33 
AnswerRe: Please check my program if it is correct Pin
TorstenH.21-Sep-11 2:03
TorstenH.21-Sep-11 2:03 
Nagy, the equals(Polynominal p) is requested that way!

the toString() is supposed to have a bit more functionality:
The method toString method will return the string containing the equation including only the
non-zero term.


...And comments are a requested point too: Include comments in your program describing the main steps in your program.

the "driver" is simply the main-method that rocks the party. You should have that one by now if you've written the rest.


Java
// copy constructor  
	public Polynomial(Polynomial p)
	{
		coeff = p.coeff;
 
	}


That does not work - coeff is a private member. Yu need to use at least getCoeff(int i) - which returns a single int value. So that one can also not be assigned to your Array coeff[5].

Java
public Polynomial()
	{
		coeff = null;
	}

...equals kind of a head shot. Your Array is invalid from that point on as it is null.


Please use decent Hungarian Code conventions:
int iValue
Array oValues
Polynominal oPoly

As Nagy says, good structure is the job half way done.
regards Torsten
I never finish anyth...

GeneralRe: Please check my program if it is correct Pin
Nagy Vilmos21-Sep-11 2:33
professionalNagy Vilmos21-Sep-11 2:33 
GeneralRe: Please check my program if it is correct Pin
David Skelly21-Sep-11 3:57
David Skelly21-Sep-11 3:57 
GeneralRe: Please check my program if it is correct Pin
Nagy Vilmos21-Sep-11 5:01
professionalNagy Vilmos21-Sep-11 5:01 
GeneralRe: Please check my program if it is correct Pin
David Skelly21-Sep-11 5:53
David Skelly21-Sep-11 5:53 
GeneralRe: Please check my program if it is correct Pin
Nagy Vilmos21-Sep-11 5:55
professionalNagy Vilmos21-Sep-11 5:55 
GeneralRe: Please check my program if it is correct Pin
David Skelly21-Sep-11 22:28
David Skelly21-Sep-11 22:28 
GeneralRe: Please check my program if it is correct Pin
Nagy Vilmos21-Sep-11 22:58
professionalNagy Vilmos21-Sep-11 22:58 
GeneralRe: Please check my program if it is correct Pin
David Skelly22-Sep-11 1:31
David Skelly22-Sep-11 1:31 
GeneralRe: Please check my program if it is correct Pin
Nagy Vilmos22-Sep-11 1:41
professionalNagy Vilmos22-Sep-11 1:41 
GeneralRe: Please check my program if it is correct Pin
mastdesi21-Sep-11 9:14
mastdesi21-Sep-11 9:14 
GeneralRe: Please check my program if it is correct Pin
TorstenH.21-Sep-11 19:20
TorstenH.21-Sep-11 19:20 
GeneralRe: Please check my program if it is correct Pin
TorstenH.21-Sep-11 19:19
TorstenH.21-Sep-11 19:19 
GeneralRe: Please check my program if it is correct Pin
Nagy Vilmos21-Sep-11 21:48
professionalNagy Vilmos21-Sep-11 21:48 
GeneralRe: Please check my program if it is correct Pin
David Skelly21-Sep-11 4:17
David Skelly21-Sep-11 4:17 
GeneralRe: Please check my program if it is correct Pin
TorstenH.21-Sep-11 19:17
TorstenH.21-Sep-11 19:17 
GeneralRe: Please check my program if it is correct Pin
David Skelly21-Sep-11 22:09
David Skelly21-Sep-11 22:09 
GeneralRe: Please check my program if it is correct Pin
TorstenH.22-Sep-11 19:52
TorstenH.22-Sep-11 19:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.