Infor Interview Question

Write a code for finding the number of words in a given sentence

Interview Answer

Anonymous

May 31, 2018

number of words = sentence.split("\\s+").length;