Giter Site home page Giter Site logo

java-pe4's Introduction

java-pe4

Java Language Basics - Practice Exercise 4*

  1. Write a java program to count the total number of occurrences of a given character in a ​ string without using any loop? For Example- Java is java again java again count number of occurrence of a in the given ​ string
  2. Write a program to replace all d with f and all l with t in the given ​ String Input: daily dry Output: faity fry Original ​ string​ : daily dry New ​ String​ : faity fry
  3. Write a program that ​ sets​ up a ​ String​ variable containing a paragraph of text of your choice. a. Extract the words from the text and sort them into alphabetical order. b. Display the sorted list of words.
  4. Write a program to transpose the given ​ string​ . Input ​ String​ : a quick brown fox jumps over the lazy dog Output ​ String​ : a kciuq nworb xof spmuj revo eht yzal god
  5. Write a program with the implementation of ​ Regular Expression​ to find the presence of the name Harry in a ​ string​ . Input: This is Harry. Output: Is Harry here ? true Input : This is Henry. Output: Is Harry here ? False
  6. Write a program to find out the multiple occurrences of the given word in a ​ string​ using Matcher methods. Input : She sells seashells by the seashore Given word: se Output : Found at: 4 - 6Found at: 10 - 12 Found at: 27 – 29

java-pe4's People

Contributors

sahithi-chilakamarri avatar

Watchers

James Cloos 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.