Need some help with an Array
. Set up an array of 100 integers – starting from 1. Print out your array in reverse order. Display 10 numbers per line. Use printf to help with the output. Output a list of even numbers. Output a list of odd numbers.

VulpesRank #55 · 29.2K reputationPosted Sep 5, 2013, 11:59 PM EDT
Alex50 reputationPosted Sep 6, 2013, 1:05 AM EDT
Alex50 reputationPosted Sep 6, 2013, 1:09 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 6, 2013, 1:50 AM EDT
It means format an integer in a field which is 4 characters long. If the integer has less than 4 digits, the field will be padded out with spaces to the left.
So, here, we have integers varying in length from 1 to 3 characters. If we use a field size of 4 that will ensure there's at least one space between each integer when we print them to the console.
There's a useful article here on formatting strings with Java:
http://www.homeandlearn.co.uk/java/java_formatted_strings.html
Alex50 reputationPosted Sep 6, 2013, 2:31 AM EDT
1. Write a program that will allow the user to insert a number supplied by the user into a position also supplied by the user into an integer array of max size 10.
VulpesRank #55 · 29.2K reputationPosted Sep 6, 2013, 4:16 AM EDT
Alex50 reputationPosted Sep 12, 2013, 3:48 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 12, 2013, 2:25 PM EDT
Alex50 reputationPosted Sep 15, 2013, 3:18 PM EDT
Alex50 reputationPosted Sep 20, 2013, 6:11 PM EDT
Can i ask again your help?
I created a calcWeeksPay method which is counting payment or overtime payments if more than 40hours. But i have a problem because in formula i have 2 different types double and int and i have incorrect result.
Sorry for bothering you....