Giter VIP home page Giter VIP logo

advancedjavastreams's Introduction

Advanced Java Streams Assessment

This is an extension of an existing project, WordCount. You are expected to complete the following tasks by using lambda expression, method reference and stream in Java.

Tasks

  1. Identify the longest line in the list lyrics and print out the longest line and its length in the terminal.
  2. Collect all words in lyrics and store them in a local variable named words of type List. Note: ▪ All words stored in words should be in lower case. ▪ You should make use of the list words in Tasks 3 & 4.
  3. Print out a list of distinct words with 6 characters in an alphabetical order.
  4. Calculate the frequency of each unique word in words and then print out the words and their frequencies of all the words that have at least 4 characters and occur more than 5 times. The output should be ordered by frequency.and line.

The Code

This code is written in Java

Running The Code

*Open a command prompt window and go to the directory where you saved the java program (Main.java). Type : javac Main.java Now, to run your program, type : java Main

*The files are self-contained and all necessary libraries are imported.

-herdle_extension is the final version of the game.

-iteration1.hs produces a working game.The subsequent iterations make the game closer to the described game play and with more features.

advancedjavastreams's People

Contributors

aishasaleem110 avatar

Watchers

 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.