Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Begineer Help Help Please Thanks A million ) I am using Jcreator
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


juicy
Begineer Help Help Please Thanks A million ) I am using Jcreator
0 Answer(s)      a year and 10 months ago
Posted in : Java Beginners


System.out.println(" Income Statement"); System.out.print("Year: ");

                                Arrays.sort(Year);
                                System.out.print(Arrays.toString(Year));

The problem of this coding is that it will show null values before my user input value. Like this : Income Statement Year: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2011] Month: Jan-Dec
Sales Revenue: $ 1.00
Costs of Goods Sold: $ 1.00
Gross Profits: $ 1.00
Operating Expenses Sales and Marketing: $ 1.00
General and Administration: $ 1.00
Depriciation and Amoritaisation: $ 1.00
Total Operating Expenses: $ 0.00
Operating Income: $ 1.00
Interest Expense: $ 1.00
Earning before Tax: $ 1.00 Tax: $ 0.00
Net income: $ 1.00
Dividends Distributed: $ 1.00
Retained Earnings: $ 2.00
I don't know how to sort the array in such a way that it still can function like this but without the null values.My array has a size of 20.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com