Java: Generate random integer array with given range and array size.
Category: Java
Generate Random Int
Java: Generate random integer with given range.
Sort Int Array
Java: Sort an integer array in ascending and descending order. Output: Ascending: [3, 5, 10] Descending: [10, 5, 3]
Count Occurrences in Array
Java: Count number of occurrences of a value inside an array.
Display Date as String
Java: Display a Date value as a string.
Convert String to Date
Java: Converting String value into Date value.
Fill Array with One Value
Java: Filling a 1-dimensional array with a single value. Note: Applicable to all primitive 1-dimensional array types.
Validate Input is Integer
Java: Validating user input is of integer type.
Read from File
Java: Reading a string value from txt file.
Write to File
Java: Writing any value type to txt file. Note: Set FileOutputStream boolean value to true for append mode, false for overwrite mode.