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
<html> | |
<head> | |
<title>Calculator</title> | |
<style> | |
#display, button { | |
font: bold 32px Impact; | |
border: 1px solid green; | |
width: 100px; | |
padding: 10px; |
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.kiev.prog; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
var scanner = new Scanner(System.in); | |
var list = "i=я;love=люблю;java=джаву;very=очень;much=сильно"; |
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.kiev.prog; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
var scanner = new Scanner(System.in); | |
System.out.println("Введите выражение:"); | |
var s = scanner.nextLine(); // 1 + 2 |
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.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
System.out.println("What is BTC price today?"); | |
var btc = scanner.nextDouble(); | |
while (true) { |
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 org.example; | |
import org.telegram.telegrambots.bots.*; | |
import org.telegram.telegrambots.meta.TelegramBotsApi; | |
import org.telegram.telegrambots.meta.api.methods.send.SendMessage; | |
import org.telegram.telegrambots.meta.api.objects.Update; | |
import org.telegram.telegrambots.meta.exceptions.TelegramApiException; | |
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession; | |
class MySuperBot extends TelegramLongPollingBot { |
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 academy.prog; | |
import org.telegram.telegrambots.bots.*; | |
import org.telegram.telegrambots.meta.TelegramBotsApi; | |
import org.telegram.telegrambots.meta.api.methods.send.SendMessage; | |
import org.telegram.telegrambots.meta.api.methods.send.SendPhoto; | |
import org.telegram.telegrambots.meta.api.objects.InputFile; | |
import org.telegram.telegrambots.meta.api.objects.Update; | |
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession; |
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
print "Hello world" |
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 org.example; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.nio.charset.StandardCharsets; | |
public class Main { | |
public static void main(String[] args) throws IOException { |
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 org.example; | |
import java.util.Date; | |
public class Main { | |
public static void main(String[] args) throws InterruptedException { | |
while (true) { | |
System.out.println(new Date() + " Hello world!"); | |
Thread.sleep(1000); | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>Child1</artifactId> | |
<version>1.0-SNAPSHOT</version> |
OlderNewer