Begineer Help Help Please Thanks A million ) I am using Jcreator

Begineer Help Help Please Thanks A million ) I am using Jcreator

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.

View Answers









Related Tutorials/Questions & Answers:

Ads