Печать позитива массива
import java.util.Scanner;
public class PrintPositives {
public static void main(String[] args) {
System.out.println("Enter size of array ");
Scanner input = new Scanner(System.in);
int arr = input.nextInt();
int[] numbers = new int[arr];
for (int i = 0; i < numbers.length; i++) {
System.out.println("Please enter number");
numbers[i] = input.nextInt();
}
System.out.println("positive numbers");
for (int i = 0; i < numbers.length; i++) {
if (numbers[i]>=0){
System.out.println("positive" + "-" + numbers[i]);
}
}
}
}
Breakable Boar