var.split(" ");
Thank you.Okay naneed po ng space sa split..
Code:var.split(" ");
Reason: Since your input is using string and the only thing that separates your 1st and 2nd input is a space, you need to tell your split function to separate two data between space. Di mo kasi nilagagyan ng space yung split function since dalawang qoutes lang siya. Wala pumapasok na value sa line[1] or second index ng array mo..