Driver Code
public static void main ( String [ ] args ) { int arr [ ] = { - 2 , 8 , 3 , 8 , - 4 , - 15 , 5 , - 2 , - 3 , 1 } ; int size = arr . length ; System . out . println ( findMaxSum ( arr , size ) ) ; } }