Anastasiia's repositories
BlockingThreads
Create 2 classes. Implement mutual blocking of these classes.
BookLambdaAnonymousClass
Create a Book class, make 3 fields and corresponding methods. To implement the closure of the anonymous class and the lambda expression.
CurrencyJson
Create classes Currency, Parser, Main. Connect to the NBU API and display 3 currencies to the console
ElectricApplianceWithoutDAO
Determine the hierarchy of electrical appliances. Plug some in. Calculate the power consumption. Carry out sorting of appliances in the apartment based on power. Find a device in the apartment that matches the specified range of parameters. Do not use database access and DAO.
JdbcNewDBMysql
Create a database in Workbench and connect to IntelijIdea and create a test table. Populate it with data using MySQL queries in IntelijIdea. Using JDBC write an example of executing all requests.
JdbsTxtMysqlQuery
Write all requests in a text file from a new line each and use the I / O streams to read all requests from the file and execute.
LambdaCalulator
Write the basic arithmetic operations of the calculator using lambda expressions
LambdaStream
Create a list and fill 10 cells with random numbers, you need to output the sum of the squares of all elements of the list using map() and reduce().
MySqlConditionMarred
Employee by id 1 was not married, married change the data in the third table about marital status.
MySqlConditionSalaryMore10000
To get the id of employees whose salary is more than 10000.
MySqlCreateDB
Create a database named "MyDB". In the created database (from task 2), create 3 tables: the 1st contains the names and phone numbers of employees of a certain company, The 2nd contains statements about their salary, and positions, the 3rd contains information about marital status, date of birth and place of residence.
MySqlFunctionCarsshop
Using the carsshop database, create a function to find the minimum age of a customer, then sample all the cars he bought.
MySqlIndexShopDB
Using the ShopDB database and the Customers page (delete the table if present and re-create the first time without a primary key then with a primary) and then add the indexes and parse the dataset.
MySqlIndexView
Set your indexes on tables and create views for some tasks
MySqlJoinShopDB
Using JOIN's and ShopDB to get the names of buyers and names of employees whose TotalPrice of goods is more than 1000
MySqlNormalizationStaff
Design a database for a fictitious HR system, normalize all tables.
MySqlNormalizationTable
Normalize the table
MySqlPkFkStaff
Design a database for an HR system
MySqlPkFkWarehouse
Design a database for a wholesale warehouse that has suppliers of goods, staff, regular customers. Think over the fields of the tables yourself.
MySqlProcedure
Create functions/procedures for some tasks
MySqlSubqueries
Make a selection using subqueriesfor some tasks
MySqlSubqueriesShopDB
Using subqueries and ShopDB to get the names of buyers and names of employees whose TotalPrice of goods is more than 1000
MySqlTransaction
Execute a series of insert records as a transaction in a stored procedure. If there is such an employee, rollback the database.
MySqlTriggers
Create a trigger that will delete records from the 2nd and 3rd tables before deleting records from the employee tables (1st table) so as not to violate the integrity of the data.
ResolveDeadlockThread
Create 2 classes. Implement mutual blocking of these classes. Use all possible methods to solve the problem of mutual blocking.
SynchronizedThreads
Create 2 classes with fields and methods. It is necessary to synchronize the methods of these classes with each other, i.e. to display values one by one (class 1, class 2, 1, 2, etc.)
ThreadPriority
Create 2 classes PriorityRunner and PriorityThread. Start 3 threads with priorities (min, max, norm). With the help of the for loop, we will display values from 1 to 50 on the screen and indicate which thread is doing this operation.
ThreadSleep
Create three threads, start each of these threads (for example: main, second, first), and when these threads work successfully - display a message on the screen (completion then first, second and main).