Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write code to print all the rows where the name starts with "X".
- table = new SimpleTable("baby-2010.csv");
- for (row: table) {
- if (row.getField("name").startsWith("X")) {
- print(row);
- }
- }
- ---------------------------------------------------
- Write code to print all the rows where the name starts with "Xz".
- table = new SimpleTable("baby-2010.csv");
- for (row: table) {
- if(row.getField("name").startsWith("Xz")) {
- print(row);
- }
- }
- ---------------------------------------------------
- Write code to print all the rows where the name ends with "x".
- table = new SimpleTable("baby-2010.csv");
- for (row: table) {
- if(row.getField("name").endsWith("x")) {
- print(row);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement