in util package you are writing .List:
This is the class of java.util.*; package which extends Collection. This is used to list elements available in the Collections. In this program a argument <Integer> has been passed with the List for type checking.
can you tell me list is a class or interface . if you don't know why you writing this type of wrong notion.
I need help,Abednigo Obadje February 29, 2012 at 1:03 AM
I need to Write a Java program that shuffles the elements of an integer array. First, it should define a positive integer constant , prompt the user to enter integer numbers, and store them in an array. Then, it should print out the array by calling an array printing method (e.g. static void
printArray(int[] array)). The array printing method should format the array by including the â??[ â?? and
the â??]â?? characters at the beginning and the end of the arrays, printing the array elements on the same line,
separated by a â??,â?? (comma). After this, the array should be given to a method that randomly reorders or shuffle the
elements in the array (e.g. static void shuffleArray(int[] array)). Finally, the reordered array should
also be printed using the above array printing method.
Write a program to perform to following operations on an array of 20 integers:
-Add an element on request. If an over follow has occurred then display appropriate message.
-Delete a specific element from the array. In case of not found or underflow just display a message.
-Search for any element using binary search method.
- implement a sort method to be executed before the output operation
- List the elements that are available in the array
- Find the average of the positive numbers in the array.
- Wire a menu that could help the user to select the needed operation.
some thing wrong you are writingsushant behera April 25, 2011 at 9:47 AM
in util package you are writing .List: This is the class of java.util.*; package which extends Collection. This is used to list elements available in the Collections. In this program a argument <Integer> has been passed with the List for type checking. can you tell me list is a class or interface . if you don't know why you writing this type of wrong notion.
I need help,Abednigo Obadje February 29, 2012 at 1:03 AM
I need to Write a Java program that shuffles the elements of an integer array. First, it should define a positive integer constant , prompt the user to enter integer numbers, and store them in an array. Then, it should print out the array by calling an array printing method (e.g. static void printArray(int[] array)). The array printing method should format the array by including the â??[ â?? and the â??]â?? characters at the beginning and the end of the arrays, printing the array elements on the same line, separated by a â??,â?? (comma). After this, the array should be given to a method that randomly reorders or shuffle the elements in the array (e.g. static void shuffleArray(int[] array)). Finally, the reordered array should also be printed using the above array printing method.
regarding collections classchockalingam March 28, 2012 at 7:47 PM
why we should do a shuffling first before the sort?
Write a program JavaMajed2020 May 1, 2012 at 11:11 AM
Write a program to perform to following operations on an array of 20 integers: -Add an element on request. If an over follow has occurred then display appropriate message. -Delete a specific element from the array. In case of not found or underflow just display a message. -Search for any element using binary search method. - implement a sort method to be executed before the output operation - List the elements that are available in the array - Find the average of the positive numbers in the array. - Wire a menu that could help the user to select the needed operation.
Post your Comment