File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ All the examples in this section require the biojava-dna module.
6969` Collections.reverse(mySeq.subList(2,4)); // Java Collections API. `
7070` `
7171` // Do the same, 1-indexed bio style? `
72- ` Collections.reverse(mySeq.subList_bio(3,5)); `
72+ ` Collections.reverse(((SymbolList) mySeq) .subList_bio(3,5)); `
7373
7474### Editing the sequence
7575
@@ -78,7 +78,7 @@ All the examples in this section require the biojava-dna module.
7878` mySeq.subList(1,3).clear(); `
7979` `
8080` // Remove only 2nd base, bio-style. `
81- ` mySeq.remove_bio(2); `
81+ ` ((SymbolList) mySeq) .remove_bio(2); `
8282` `
8383` // Get another sequence and insert it after the 1st base. `
8484` List ` <Symbol >` otherSeq = SymbolListFormatter.parseSymbolList("GGGG"); `
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ All the examples in this section require the biojava-dna module.
5959 Collections.reverse(mySeq.subList(2,4)); // Java Collections API.
6060
6161 // Do the same, 1-indexed bio style?
62- Collections.reverse(mySeq.subList_bio(3,5));
62+ Collections.reverse(((SymbolList) mySeq) .subList_bio(3,5));
6363
6464=== Editing the sequence ===
6565
@@ -68,7 +68,7 @@ All the examples in this section require the biojava-dna module.
6868 mySeq.subList(1,3).clear();
6969
7070 // Remove only 2nd base, bio-style.
71- mySeq.remove_bio(2);
71+ ((SymbolList) mySeq) .remove_bio(2);
7272
7373 // Get another sequence and insert it after the 1st base.
7474 List<Symbol> otherSeq = SymbolListFormatter.parseSymbolList("GGGG");
You can’t perform that action at this time.
0 commit comments