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.
VulpesPosted Sep 6, 2013, 3:59 AM
AlexPosted Sep 20, 2013, 10:11 PM
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....
AlexPosted Sep 15, 2013, 7:18 PM
VulpesPosted Sep 12, 2013, 6:25 PM
AlexPosted Sep 12, 2013, 7:48 AM
VulpesPosted Sep 6, 2013, 8:16 AM
AlexPosted Sep 6, 2013, 6:31 AM
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.
VulpesPosted Sep 6, 2013, 5:50 AM
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
AlexPosted Sep 6, 2013, 5:09 AM
AlexPosted Sep 6, 2013, 5:05 AM