本文介绍了需要Java帮助,大脑准备爆炸!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我准备好把自己从窗口中拉出来完成我需要做的这项工作。我需要一系列英语句子。这将列出包含一个或多个字符m的所有句子中的所有单词。使用输入对话框将句子读入数组,并使用输出对话框显示所需的单词(每行7个单词)。句子数量不会超过5. 现在我想*我想我需要使用以下一些: String [] array = new String [5]; 然后我猜我需要将字符串存储在一个数组中 array [ 0] = theInputSentence; 然后我需要以某种方式创建一个循环,检查句子中有字母m的那些。 但除此之外,我的思绪已陷入绝对的停滞状态,而且非常讨厌。特别是使用将检查''m'的循环位。 真的开始对它进行了解决Im about ready to throw myself out of a window for this piece of work that i need to do. I need an array of English sentences. Which will list all those words from all the sentences that contain one or more character ''m''. Use an input dialog box to read the sentences into the array and an output dialog box to display the required words (7 words per line). The number of sentences will not exceed 5.Now i *think* ive figured out that i need to use some of the following :String [] array = new String[5];Then im guessing i need to store the string in an arrayarray[0] = theInputSentence;Then i need to somehow create a loop that checks the sentence for thats that have the letter ''m'' in them.But other then that my mind has come to an absolute standstill and its pretty damn annoying. Especially with the loop bit that will check for the ''m''.Really startign to get worked up about it too推荐答案 为程序编写shell。类,main方法和导入javax.swing。然后尝试将句子放入数组中。你的猜测是正确的。编写shell之后,发布并查看循环的位置。Write the shell for the program. The class, the main method and import javax.swing. Then try to get the sentences into the array. Your guesses are correct. After writing the shell, post and we can see where the loops go. 嘿,香港专业教育学院设法完成了这一次,但感谢您的时间。我想知道你是否能用我刚才写的一段代码来帮助我。Hey, ive managed to complete this one, but thanks for your time anyway. I was wondering if you could help me with a piece of code that i wrote a while ago. 展开 | 选择 | Wrap | 行号 展开 | 选择 | Wrap | 行号 这篇关于需要Java帮助,大脑准备爆炸!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-25 02:19