![]() |
The Future Is Behind You |
Home | About | Stories | Blog | Poetry | Programming |
Array from a SentenceFill an array split from a sentence. public class Array { public static void main(String[] args) { String sentence = "the quick brown fox jumps over the lazy dog"; String[] array = sentence.split(" "); for (String s : array) { System.out.println(s); } } } Output: the quick brown fox jumps over the lazy dog |
Copyright © 2003 - 2021 Kyle Eggleston |
a = b = c |