質問編集履歴
1
文法の修正
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 |
|
14
|
+
if( str.endsWith( "c | e" ) ){ //文字列の末尾がc または e の場合にtrueにしたい
|
15
15
|
System.out.println( "true" );
|
16
16
|
}
|
17
17
|
}
|