Skip to content

Instantly share code, notes, and snippets.

View ashipovalov's full-sized avatar
💻
I may be slow to respond.

Aleksandr Shipovalov ashipovalov

💻
I may be slow to respond.
View GitHub Profile
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.junit.After;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import org.hamcrest.MatcherAssert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.junit.After;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import org.hamcrest.MatcherAssert;
package ru.practicum.helpers;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.rmi.RemoteException;
@ashipovalov
ashipovalov / WrapperClassesDemo.java
Created March 21, 2025 16:37
Демонстрация работы с классами обертками и упакованными объектами
import java.util.ArrayList;
import java.util.List;
public class WrapperClassesDemo {
public static void main(String[] args) {
Integer intWrapper = Integer.valueOf(42); // Создание через valueof
Double doubleWrapper = 3.14; //Автоупаковка
Character charWrapper = 'A'; //Автоупаковка
Boolean boolWrapper = Boolean.TRUE; // Использование константы