📌  相关文章
📜  如何从java代码示例中的字符串中获取单个单词

📅  最后修改于: 2022-03-11 14:52:20.994000             🧑  作者: Mango

代码示例1
{
public static void main(String args[])
{
String str = "Hey this is Ram";
String [] words = str. split(" ", 3);
for (String word : words)
System. out. println(word);