split csv line java code example Example: java csv line split String[] splitted = string.split(",(?=([^\"]*\"[^\"]*\")*[^\"]*$)", -1);