write a program that uses sort class to sort an array of 100 floating-point numbers Be sure to use static methods for this program (that is, there is no need to create search objects). You can random numbers using java.util.Random() or java.lang.Math.random() ). You must enter the target float number interactively. Note (as shown below) that the question requires type float not type double. Your program should deal gracefully with any errors or anomalies associated with entering the target float number. The following code is for getting a float from a String (inputline).
I have a problem for searching and prompt users.
here is my work. import java.awt.*; import java.io.*; import java.lang.*; import java.util.*; import java.text.*; public class Sor { public static void sort(float[] nums) {