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

質問編集履歴

1

文法の修正

2018/04/17 09:50

投稿

Nerd_run.
Nerd_run.

スコア60

title CHANGED
File without changes
body CHANGED
@@ -11,7 +11,7 @@
11
11
  public class hoged {
12
12
  public static void main( String[] args ){
13
13
  String str = "abc"
14
- if( str.endsWith( "c | b" ) ){ //文字列の末尾がc または b の場合にtrueにしたい
14
+ if( str.endsWith( "c | e" ) ){ //文字列の末尾がc または e の場合にtrueにしたい
15
15
  System.out.println( "true" );
16
16
  }
17
17
  }