w3resource logo

Tutorials, Exercises published recently

Trending Exercises / Tutorial :

Python Object Oriented Programming

Python Cyber Security

MongoDB listingsAndReviews collection

Java Object Oriented Programming

06 June, 2023

Python Exception Handling: Exercises, Solutions, and Practice

MongoDB: Find movies with highest average rating by year

MongoDB: Top 10 directors by movie count

MongoDB: Calculate average movie ratings by rating category

MongoDB: Retrieve award-winning movies sorted by year

MongoDB query to retrieve top-rated movie

05 June, 2023

Python Object-Oriented Programming - Exercises, Practice, Solution

Python Object-Oriented Programming: Circle class with area and perimeter calculation

Python Object-Oriented Programming: Person class with age calculation

Python Object-Oriented Programming: Calculator class for basic arithmetic

Python Object-Oriented Programming: Shape class with area and perimeter calculation

Python Object-Oriented Programming: Binary search tree class with insertion and search methods

Python Object-Oriented Programming: Stack class with push and pop methods

Python Object-Oriented Programming: Linked list class with insertion, deletion, and display methods

Python Object-Oriented Programming: Shopping cart class with item management and total calculation

Python Object-Oriented Programming: Stack class with push, pop, and display methods

Python Object-Oriented Programming: Queue class with enqueue and dequeue methods

Python Object-Oriented Programming: Bank class for customer account management

03 June, 2023

Java Generic Methods - Exercises, Practices, Solutions

Java generic method: Check equality of arrays

Java generic method: Calculate sum of even and odd numbers

Java generic method: Find index of target element in list

Java generic method: Reverse list elements

Java generic method: Merge two lists alternately

Java generic method: Filter list with predicate

Java generic method: Print key-value pairs in a map

02 June, 2023

Java Encapsulation - Exercises, Practices, Solutions

Java Encapsulation: Implementing Person Class with Getter and Setter Methods

Java Encapsulation: Implementing the BankAccount Class with Getter and Setter Methods

Java Encapsulation: Implementing Rectangle Class with Getter and Setter Methods

Java Encapsulation: Implementing an Employee Class with Getter and Setter Methods

Java Encapsulation: Implementing a circle class with getter, setter, and calculation methods

Java Encapsulation: Implementing Car Class with Getter and Setter Methods

Java Encapsulation: Implementing a Student Class with Grade Validation

01 June, 2023

Java enum Types - Exercises, Practice, Solution

Movies with "metal" in the full plot

Movies with runtime between 60 and 90 minutes

Retrieve top 5 movies with highest imdb ratings

Calculate average runtime of movies released in each country

Finding the most popular genre

31 May, 2023

Java Exception Handling - Exercises, Practices, Solutions

Java Exception Handling: Try-Catch block example

Java Program: Method to check and handle odd numbers

Java Program: File reading method with exception handling

Java Program: File reading and exception handling for positive numbers

Java Program: File reading and empty file exception handling

Java Program: User input validation for duplicate integers

Java Program: String input validation for vowels

30 May, 2023

Java thread Programming - Simultaneous Website Crawling

Concurrent Bank Account in Java: Thread-Safe Deposits and Withdrawals

Find movies with nominations from 'movies' collection

Find Movies with "Charles Kayser" in the cast from 'movies' collection

Movies released on May 9, 1893

Movies with 'scene' in the title

Movies with Viewer Rating between 3 and 4 on Tomatoes

Retrieve Movies Released Before 1900

Find Movies with "Fire" in fullplot

Find Movies with "beer" in plot

29 May, 2023

Java Thread - Exercises, Practices, Solutions

Java thread Programming - Create a Basic Thread to Print "Hello, World!"

Java thread Programming - Find and Print Even-Odd Numbers with Threads

Java thread Programming - Multithreaded Java Program: Sorting an Array of Integers

Java thread Programming - Multithreaded Java Program: Matrix Multiplication

Multithreaded Java Program: Sum of Prime Numbers

Create a react component on top of Tailwind CSS

28 May, 2023

MongoDB Exercises: Movie collection

Find Movies Released in 1893

Find movies with runtime greater than 120 minutes

Find movies with "Short" genre

Retrieving movies directed by William K.L. Dickson

Movies released in the USA

Retrieve movies with complete information and "UNRATED" rating

Retrieve movies with complete information and more than 1000 IMDb votes

Retrieve movies with complete information and IMDb rating higher than 7

Retrieve Movies with viewer rating higher than 4 on tomatoes

Retrieve movies with awards from 'movies' collection

27 May, 2023

Java Stream - Exercises, Practice, Solutions

Java Program: Calculate Average of Integers using Streams

Java Program: Convert List of Strings to Uppercase or Lowercase using Streams

Java Program: Sum of Even and Odd Numbers in a List using Streams

Java Program: Remove Duplicate Elements from List using Streams

Java Program: Count Strings Starting with Specific Letter using Streams

Java Program: Sort List of Strings in Ascending and Descending Order using Streams

Java Program: Find Maximum and Minimum Values in a List of Integers using Streams

Java Program: Find Second Smallest and Largest Elements in a List of Integers using Streams

26 May, 2023

Explore wxMaxima: Basic Operations, Equations, Calculus, Matrices, and Plotting

25 May, 2023

Find Listings with superhost and at least 2 listings in the listingsAndReviews collection

Find listings with hosts having profile picture and identity verification in the listingsAndReviews collection

Retrieve listing information with host verifications

Find listings with host verifications and size in MongoDB

Find listings with host pictures in the listingsAndReviews collection

24 May, 2023

Java Program: Sort list of objects with lambda expression

Java Program: Calculate sum of prime numbers with lambda expression

Java Program: Lambda expression for checking uppercase, lowercase, or mixedcase strings

Java Program: Lambda expression to find average string length

Java Program: Lambda expression to find largest prime factor

Java Program: Lambda expression to convert integer to binary

23 May, 2023

Java Program to count words in a sentence using lambda expression

Java program to check Palindrome string using lambda expression

Java program to calculate sum of squares of odd and even numbers using lambda expression

Java program to check if a list contains a specific word using lambda expression

Java program to find length of longest and smallest string using lambda expression

Java program to check if a number is a perfect square using lambda expression

Java Lambda Expression: Find second largest and smallest element in an Array

22 May, 2023

Retrieve listings with multiple listings by hosts

Retrieve apartments with two or more beds in the ListingsAndReviews collection

Find listings with minimum 2 bathrooms

Find listings with maximum 5 guests included

Find listings with high price and security deposit

Find listings with strict cancellation policy

Find listings with real bed and kitchen amenity

Find listings with 24-hour check-in and located in Brazil

Finding listings with reviews in the listingsAndReviews collection

Finding the number of documents with a blank medium picture url in the listingsAndReviews collection

Find listings with availability of at least availability_30 days in the istingsAndReviews collection

Find listings in Lagoa suburb in the listingsAndReviews collection

20 May, 2023

Java Lambda - Exercises, Practice, Solution

Java Lambda expression - Sum of two integers

Java Lamda expression - Check if string is empty

Convert list of strings to uppercase and lowercase using Lambda expression in Java

Filter even and odd numbers from list using Lambda expression in Java

Sort strings in alphabetical order using Lambda expression in Java

Calculate average of doubles using Lambda expression in Java

Remove duplicates from list of integers using Lambda expression in Java

Calculate factorial using Lambda expression in Java

Check prime number using Lambda expression in Java

Concatenate strings using Lambda expression in Java

Find maximum and minimum values with Lambda expression in Java

Multiply and sum elements with Lambda expression in Java

19 May, 2023

Java Abstract Classes: Exercises, Practice, Solution

Java Abstract Classes - Abstract Animal Class with Lion and Tiger Subclasses

Java Abstract Classes - Abstract Shape Class with Circle and Triangle Subclasses

Java Abstract Classes - Abstract Bank Account Class with Savings and Current Accounts

Java Abstract Classes - Abstract Animal Class with Lion, Tiger, and Deer Subclasses

18 May, 2023

MongoDB Exercises: Listings with host location in Brazil

MongoDB Exercises: Listings with availability greater than 300

MongoDB Exercises: Listings with 1 bedroom