teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

失礼しました。ペーストする際にミスがあったようです。

2018/11/12 01:52

投稿

orangeLover
orangeLover

スコア11

title CHANGED
File without changes
body CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  package nosplit;
19
19
 
20
- public class NoSprit {
20
+ public class NoSplit {
21
21
 
22
22
  public static void main(String[] args) {
23
23
 
@@ -29,7 +29,7 @@
29
29
 
30
30
  while (true) {
31
31
 
32
- index = word.indexOf("-", beginIndex);
32
+ index2 = word.indexOf("-", index);
33
33
 
34
34
  if(!(-1 == index2)){
35
35