Coder Social home page Coder Social logo

day-two-java's Introduction

Assignment 1. Create a class Student:id(int), name(String), age(int), address(Address)

Address Object Primary Address - String Secondary Address - Optional

A student can or cannot have a secondary address.

Find the list of students associated who do not have a secondary address. Find the list of student name where the name starts with the initial of your name and do not have a secondary address. Assignment 2. List all your birth date’s DayOfWeek till date.

example - If you were born on 10th May, 1991, then return a List which will have DayOfWeek from the day you were born till date.

10th May, 1991 - Friday 10th May,1992 - Sunday And so on

Output - List[“Friday”,”Sunday”...]

Assignment 3. Print current time of the given Time Zone.

Example - String getTimeFromTimeZone(String timeZone);

Output - Time as per given timeZone (TimeZone values - UTC, UTC+12)

Assignment 4. Print the number of seconds a man lived(ignore time, consider only date).

Create a function which takes two parameters

Man’s birth date. Man's death date. Assignment 5. List all the leap years after 1st Republic Day(India).

Assignment 6. You have to read the contents of a file and return a Map<String, String> with key as the common word and values as the count.

Example - Input - A file path Output - {“hello”:”2”, “world”:2}

Assignment 7 - Write an application to perform CRUD operation for a user

day-two-java's People

Watchers

Muskan Gupta 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.