fork download
  1. class Program
  2. {
  3. public static void main(String[] args) {
  4. int mas90[]=new int[10];
  5. int mas91[]=new int[10];
  6. double mas92[]=new double [10];
  7. for(int i=0, b=1; b<=2; i++){
  8. if(b==1){
  9. mas90[i]=(int)(Math.random()*8+1);
  10. if(i==0){
  11. System.out.print(mas90[i]+" ");
  12. if(i==mas90.length-1){
  13. b++;
  14. i=0;
  15. System.out.println(" ");
  16. }
  17. }
  18. }
  19. }
  20. }
  21. }
Runtime error #stdin #stdout #stderr 0.04s 711168KB
stdin
Standard input is empty
stdout
4 
stderr
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10
	at Program.main(Main.java:9)