/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package negatuve.subarray.in.java; import java.util.Scanner; /** * * @author Shakil */ public class NegatuveSubarrayInJava { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Scanner sc=new Scanner(System.in); int size=sc.nextInt(); int[] array=new int[size]; int[][] newarr=new int[size][size]; int j=0; for(int i=0;i