## Zero Sum Subarrays You are given an array arr[] of size n. Find the total count of sub-arrays having their sum equal to 0. [🔗Goto](https://practice.geeksforgeeks.org/problems/zero-sum-subarrays1825/1/?page=8&difficulty[]=1&status[]=unsolved&sortBy=submissions#)
Full Code ```java import java.io.*; import java.util.*; class GFG { public static void main (String[] args) { Scanner sc=new Scanner(System.in); int t=sc.nextInt(); sc.nextLine(); while(t-->0) { int n; n=sc.nextInt(); long arr[]=new long[n]; for(int i=0;i ```java class Solution{ public static long findSubarray(long[] arr ,int n){ long count = 0; HashMap map = new HashMap<>(); int i = 0; int sum = 0; map.put(0,1); while(i