-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support of trivial strings operations
- Loading branch information
1 parent
320dd29
commit ef2b413
Showing
4 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package samples.javacore.strings.trivial; | ||
|
||
public class TrivialStrings { | ||
public static void main(String[] args) { | ||
char[] textArray = {'J', 'a', 'v', 'a', ' ', 'i', 's', ' ', 'f', 'l', 'e', 'x', 'i', 'b', 'l', 'e'}; | ||
String text = new String(textArray); | ||
char[] searchArray = {'f', 'l', 'e', 'x', 'i', 'b', 'l', 'e'}; | ||
String search = new String(searchArray); | ||
|
||
int index = text.indexOf(search); | ||
} | ||
} |
Binary file added
BIN
+579 Bytes
tests/test_data/samples/javacore/strings/trivial/TrivialStrings.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters