1 | static boolean sentenceEq(S a, S b) { |
2 | L<S> tok1 = parse3(a), tok2 = parse3(b); |
3 | if (tok1.size() != tok2.size()) return false; |
4 | for (int i = 0; i < tok1.size(); i++) |
5 | if (!tok1.get(i).equalsIgnoreCase(tok2.get(i))) |
6 | return false; |
7 | return true; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001198 |
Snippet name: | sentenceEq |
Eternal ID of this version: | #1001198/1 |
Text MD5: | c58108ed0d77f88b33af331d52b7f11d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-29 20:33:09 |
Source code size: | 280 bytes / 8 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 697 / 984 |
Referenced in: | [show references] |