Hack Bulgaria
github.com/HackBulgaria
Добра графична среда
Удобство при писане
По-лесно компилиране
JRE (Java Runtime Environment)
JDK (Java Development Kit)
JVM (Java virtual machine)
Компилатор
Java Runtime Environment is a set of programming tools for developing Java applications. It provides the minimum requirements for executing a Java application.
It consists of the Java Virtual Machine (JVM), core classes, and supporting files.
The JDK forms an extended subset of a software development kit (SDK). It includes tools for developing, debugging, and monitoring Java applications.
The Java virtual machine is a (virtual) computer process that executes a computer program compiled into Java bytecode.
RIP REPL
// <тип> <име> [ = <стойност>];
int a;
a = 3;
int b = 5;
int c, d; // Лоша практика
c = a + b;
b = "Kamen"; //Проблем!
int e = "Kamen"; // Проблем!
char str = 'k';
char symbol = 5; // Допустимо
a = 5
print(a)
a = a + 1
print(a)
print("a = " + str(a))
int a = 5;
System.out.print(a);
a = a + 1;
System.out.print(a);
System.out.println("a = " + a);
или - не точно лист...
Масив?
List?
???
int [] arr = {1, 4, 6, 8};
int f = arr[1]; // f = 4
f = arr[2];
System.out.println(f);
if a < 10:
# Code here
else:
# Else code here
for a in range(0, 10):
print ("a = {}".format(a))
if (a < 5) {
// Code here
} else {
// Else code here
}
for (int i = 0; i < 10; i = i + 1) {
System.out.println("i = " + i);
}
By Hack Bulgaria