Giter Site home page Giter Site logo

cr-mesolab-strings-deserializefromcsv's Introduction

String Lab 1

Objectives

  1. At the end of this lab students should be intimately familiar with many of the commonly used String methods
  2. Upon completing this lab, students will have extensively practiced manipulating and generating Strings of various sorts.

Overview

This lab will help you to become more familiar with the various methods available for working with strings.

Unit Test

You should write tests for the intended behavior of your code to check that your implementation meets the specifications below.

Instructions

Part 1:

Add a static deserializeFromCSV method to the Driver's License (from the lecture), which takes a string representing the contents of a CSV file produced using getCSVHeader and serializeToCSV and reproduces a List of Driver's License objects that match the contents of the file.

When done correctly you should be able to serialize any number of Driver's Licenses, and then deserialize the resultant strings (with or without having stored them in a file) and produce objects that are equivalent to the ones you started with hinthint.

Part 2:

Add methods for serializing to and deserializing from JSON. Once you have these methods, add new serialize and deserialize methods that take an additional string listing the desired format (CSV or JSON) and produce the desired result by delegating to the existing serialization and deserialization methods. These methods should throw an appropriate exception if an unsupported format is requested.

cr-mesolab-strings-deserializefromcsv's People

Contributors

leon-good-life avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.