This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ua.prin.rom; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
@SpringBootApplication | |
public class Application { | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ua.prin.rom; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
@SpringBootApplication | |
public class Application { | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default ignored files | |
/shelf/ | |
/workspace.xml | |
# Datasource local storage ignored files | |
/dataSources/ | |
/dataSources.local.xml | |
# Editor-based HTTP Client requests | |
/httpRequests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logika.Action; | |
import logika.MiniMain; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Action action = new MiniMain(); | |
Scanner scanner = new Scanner(System.in); | |
action.addSomePeople(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bl; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; | |
public class Conect { | |
private static EntityManagerFactory emf; | |
public static EntityManagerFactory getConect(){ | |
if(emf == null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.sql.*; | |
public class Human { | |
private static final String URL = "jdbc:mysql://127.0.0.1:3306/kvartiry?serverTimezone=Europe/Kiev"; | |
private static final String PASS = "1029384756"; | |
private static final String USENAME = "root"; | |
private Driver driver = null; | |
public void add(int age, String name, boolean hasFlat) { | |
try (Connection connection = DriverManager.getConnection(URL, USENAME, PASS); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Package; | |
import javax.servlet.RequestDispatcher; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
public class Class extends HttpServlet { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Colections.HashMap; | |
import java.io.*; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
public class Dictionary { | |
public Dictionary() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Colections.task3; | |
public class CharConteiner implements Comparable{ | |
private int counter; | |
private char liter; | |
public CharConteiner(char c){ | |
this.liter = c; | |
this.counter = 1; | |
} | |
public CharConteiner(int counter, char liter) { |