Click here to Skip to main content
15,907,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, in java, if I want to call several methods from the main method, and I want to put the result of my first called method into my second method, how would I do that.
Posted
Updated 21-Oct-12 7:12am
v3

1 solution

The method generateBenfordNumbers would need to return an array of double.

Then your code would look like:

double[] bns = generateBenfordNumbers(100,0.01,1000);	
calculateLeadingDigitProportions(bns);


For more help see: http://docs.oracle.com/javase/tutorial/java/javaOO/methods.html[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900