GithubHelp home page GithubHelp logo

java-basics's Introduction

Java Basics Course

Tasks:

  1. FizzBuzz. For each integer number n from 1 to 100 write the following: if n divisible by 3 write 'Fizz', if n divisible by 5 write 'Buzz', if n divisible by 15 write 'FizzBuzz', otherwise write its value.

  2. Detect if string (latin alphanumeric, read it from console) starts with vowel (a, e, i, o, u, y) or not. Detect if it starts with digit.

  3. Find n-th Fibonacci number. Read n from console, handle invalid (not numeric) input. Optional: handle oct and hex numbers (with prefix 0 and 0x accordingly).

  4. Simple console calc (+ and -, only two integer numeric operands, handle invalid input, expression given in infix notation in one line, e.g. 1+3, 10- 42, 6 + 7).

  5. Open txt file, count number of "words" (sequence of any characters split with any number of whitespaces). Better to do it without loading whole file to memory (use "floating window" approach). Generate input file automatically (easy, optional).

  6. Count tab-index of xml or json file. Optional: cs file. (File tab-index is a maximum number of nested tags/scopes. E.g. has tab-index 0, has tab-index 1.).

  7. Compare versions given in format x.y.z.t, e.g. 2.0.1.59, write which is greater. For instance 1.0 greater than 0.7.5.9, 2.4.6.0.7 less than 2.4.5.0.7, 1 equals to 1.0. Any number of version parts is valid. Delimiter is dot ('.').

  8. Check if file has balanced braces, brackets, curly braces, triangle braces ( '(' and ')', '[' and ']', '{' and '}', '<' and '>' ). File may contain not only mentioned symbols. Example: "()[{}]<()>" is balanced, "{[]})<>()" or "<[{]}>" is not.

java-basics's People

Contributors

svitlana-berezhna 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.