Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion drafts/20-arithmetics/50-priority/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ theory: |

Запомните: код пишется для людей, потому что код будут читать люди, а машины будут только исполнять его. Для машин нет «более» понятного или «менее» понятного кода, независимо от того, является ли код корректным или нет.

https://replit.com/@hexlet/java-basics-arithmetics

instructions: |

Expand Down
1 change: 0 additions & 1 deletion drafts/30-variables/12-change/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ theory: |
System.out.println(greeting);
```

https://replit.com/@hexlet/java-basics-variables-2

Java — статически типизированный язык. Это значит, что тип переменной задается при определении и больше не меняется.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ theory: |
.toLowerCase();
```

https://replit.com/@hexlet/java-basics-methods-chain

Несмотря на удобство этого механизма, им не стоит злоупотреблять. Промежуточные переменные могут упростить понимание кода.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ theory: |
Math.random(); // 0.8839904367241888
```

https://replit.com/@hexlet/java-basics-pure-functions

Зачем это нужно знать? Детерминированность серьезно влияет на многие аспекты. Детерминированные функции удобны в работе, их легко оптимизировать, легко тестировать. Если есть возможность сделать функцию детерминированной, то лучше ее такой и сделать.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-return

В этом примере в определении метода использовался `long`, так как возвращается целое число.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-methods-parameters-1

Разберем этот код подробнее. `char` говорит нам о типе возвращаемого значения. Далее в скобках указывается тип параметра `String` и его имя `str`.

Expand Down Expand Up @@ -86,7 +85,6 @@ theory: |
App.average(1, 2); // 1.5
```

https://replit.com/@hexlet/java-basics-methods-parameters-2

Методы могут требовать на вход любое количество параметров, которое им нужно для работы:

Expand Down
1 change: 0 additions & 1 deletion drafts/45-logic/12-string-comparasion/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ theory: |
name1.equals(name2); // true
```

https://replit.com/@hexlet/java-basics-logical-operations

Помимо `equals()`, в строки встроен метод `equalsIgnoreCase()`, который выполняет проверку по значению без учета регистра:

Expand Down
1 change: 0 additions & 1 deletion drafts/45-logic/20-combine-expressions/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ theory: |
App.isEven(3); // false
```

https://replit.com/@hexlet/java-basics-logical-operations-1

В одном выражении мы скомбинировали два логических оператора:

Expand Down
1 change: 0 additions & 1 deletion drafts/45-logic/25-logical-operators/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-logical-operators

Область математики, в которой изучаются логические операторы, называется **булевой алгеброй**. Ниже показаны «таблицы истинности» — по ним можно определить, каким будет результат применения оператора:

Expand Down
1 change: 0 additions & 1 deletion drafts/80-conditionals/50-else-if/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-if-else

Теперь все условия выстроены в единую конструкцию. Оператор `else if` — это «если не выполнено предыдущее условие, но выполнено текущее». Получается такая схема:

Expand Down
1 change: 0 additions & 1 deletion drafts/90-loops/100-while/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ theory: |
finished!
</pre>

https://replit.com/@hexlet/java-basics-while

В коде метода использован цикл `while`. Он состоит из трех элементов:

Expand Down
1 change: 0 additions & 1 deletion drafts/90-loops/550-for/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-conditions-for

Этот код можно описать так:

Expand Down
1 change: 0 additions & 1 deletion modules/10-basics/10-hello-world/description.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-hello-world

Текст *Hello, World!* появится на экране благодаря команде `System.out.println()`, где `println()` — это сокращение от английского *print line*. Она выводит на экран значение, указанное в скобках `("Hello, World!")` — в данном случае строку. Сама строка обрамляется двойными кавычками `""`. Если этого не сделать, то компилятор укажет на синтаксическую ошибку:

Expand Down
1 change: 0 additions & 1 deletion modules/10-basics/10-hello-world/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class App {
}
```

https://replit.com/@hexlet/java-basics-hello-world

Текст *Hello, World!* появится на экране благодаря команде `System.out.println()`, где `println()` — это сокращение от английского *print line*. Она выводит на экран значение, указанное в скобках `("Hello, World!")` — в данном случае строку. Сама строка обрамляется двойными кавычками `""`. Если этого не сделать, то компилятор укажет на синтаксическую ошибку:

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/50-priority/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ theory: |

Remember: code is for people, because it'll be read by people, and machines will only execute it. The only thing that matters for the machines is the correctness of code. They don't distinguish between "clear" or "confusing".

https://replit.com/@hexlet/java-basics-arithmetics

instructions: |

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/50-priority/description.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ theory: |

Запомните: код пишется для людей, потому что код будут читать люди, а машины будут только исполнять его. Для машин нет «более» понятного или «менее» понятного кода, независимо от того, является ли код корректным или нет.

https://replit.com/@hexlet/java-basics-arithmetics

instructions: |

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/50-priority/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ System.out.println(((8 / 2) + 5) - (-3 / 2)); // => 11

Remember: code is for people, because it'll be read by people, and machines will only execute it. The only thing that matters for the machines is the correctness of code. They don't distinguish between "clear" or "confusing".

https://replit.com/@hexlet/java-basics-arithmetics
1 change: 0 additions & 1 deletion modules/20-arithmetics/50-priority/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ System.out.println(((8 / 2) + 5) - (-4 / 2)); // => 11

Запомните: код пишется для людей, потому что код будут читать люди, а машины будут только исполнять его. Для машин нет «более» понятного или «менее» понятного кода, независимо от того, является ли код корректным или нет.

https://replit.com/@hexlet/java-basics-arithmetics
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ theory: |
System.out.print("King's " + " Landing"); // => King's Landing
```

https://replit.com/@hexlet/java-basics-strings

instructions: |

Expand Down
1 change: 0 additions & 1 deletion modules/25-strings/20-strings-concatenation/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ System.out.print("King's " + " Landing"); // => King's Landing
System.out.print("King's " + " Landing"); // => King's Landing
```

https://replit.com/@hexlet/java-basics-strings
1 change: 0 additions & 1 deletion modules/25-strings/20-strings-concatenation/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ System.out.println("King's " + " Landing"); // => King's Landing
System.out.println("King's " + " Landing"); // => King's Landing
```

https://replit.com/@hexlet/java-basics-strings#Main.java
1 change: 0 additions & 1 deletion modules/30-variables/10-definition/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ theory: |
  Father!
</pre>

https://replit.com/@hexlet/java-basics-variables-1

For the name of the variable, any set of valid characters is used, which include letters of the English alphabet, numbers and the characters `-`, `_`. In this case, the number can not be put at the beginning. Variable names are case-sensitive, that is, the name `hello` and the name `heLLo` are two different names, and therefore two variables.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/10-definition/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ When the variable is created, you can start using it. It is substituted in those
  Father!
</pre>

https://replit.com/@hexlet/java-basics-variables-1

For the name of the variable, any set of valid characters is used, which include letters of the English alphabet, numbers and the characters `-`, `_`. In this case, the number can not be put at the beginning. Variable names are case-sensitive, that is, the name `hello` and the name `heLLo` are two different names, and therefore two variables.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/12-change/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ theory: |
System.out.print(greeting);
```

https://replit.com/@hexlet/java-basics-variables-2

The name remains the same, but inside the other data. It should be noted that when changing variables, the type of data contained in them cannot change (this is not quite the case for object-oriented programming, but for the time being we will not go into details). If a variable was assigned a string, then when compiling this assignment — even before the program was started — java associates the data type “string” with this variable, and knows that there will always be only strings, and will not let it put something else in it.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/12-change/description.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ theory: |
System.out.println(greeting);
```

https://replit.com/@hexlet/java-basics-variables-2

Java — статически типизированный язык. Это значит, что тип переменной задается при определении и больше не меняется.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/12-change/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ System.out.print(greeting);
System.out.print(greeting);
```

https://replit.com/@hexlet/java-basics-variables-2

The name remains the same, but inside the other data. It should be noted that when changing variables, the type of data contained in them cannot change (this is not quite the case for object-oriented programming, but for the time being we will not go into details). If a variable was assigned a string, then when compiling this assignment — even before the program was started — java associates the data type “string” with this variable, and knows that there will always be only strings, and will not let it put something else in it.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/12-change/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ System.out.println(greeting);
System.out.println(greeting);
```

https://replit.com/@hexlet/java-basics-variables-2

Java — статически типизированный язык. Это значит, что тип переменной задается при определении и больше не меняется.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ theory: |
System.out.print("The price is" + rublesCount + "rubles");
```

https://replit.com/@hexlet/java-basics-variables-3

The price is 3750 rubles

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/15-variable-expressions/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ var rublesCount = dollarsCount * rublesPerDollar; // => 3750
System.out.print("The price is" + rublesCount + "rubles");
```

https://replit.com/@hexlet/java-basics-variables-3

The price is 3750 rubles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ theory: |
System.out.print(what); // => "Kingsroad"
```

https://replit.com/@hexlet/java-basics-variables-4

instructions: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ var what = first + last;
System.out.print(what); // => "Kingsroad"
```

https://replit.com/@hexlet/java-basics-variables-4
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ var what = first + last;
System.out.println(what); //=> Kingsroad
```

https://replit.com/@hexlet/java-basics-variables-4
1 change: 0 additions & 1 deletion modules/30-variables/23-constants/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ theory: |
System.out.print(pi); // 3.14
```

https://replit.com/@hexlet/java-basics-variables-5

A constant, like a variable, can be used in any expression. The only restriction is that the constant cannot be changed, which sounds quite logical.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/23-constants/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ final var pi = 3.14;
System.out.print(pi); // 3.14
```

https://replit.com/@hexlet/java-basics-variables-5

A constant, like a variable, can be used in any expression. The only restriction is that the constant cannot be changed, which sounds quite logical.
1 change: 0 additions & 1 deletion modules/33-data-types/55-type-casting/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ theory: |

In case above, in spite of the fact, that 5.1 is the number, it has double type not int. Expression above bring this number type to int type, reject fraction part, because int type doesn't keep fraction part.

https://replit.com/@hexlet/java-basics-data-types

instructions: |
Display the string `2 times`, obtained from the number 2.9 and the string `times`, using type conversions and concatenation.
Expand Down
1 change: 0 additions & 1 deletion modules/33-data-types/55-type-casting/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ It's 5

In case above, in spite of the fact, that 5.1 is the number, it has double type not int. Expression above bring this number type to int type, reject fraction part, because int type doesn't keep fraction part.

https://replit.com/@hexlet/java-basics-data-types
1 change: 0 additions & 1 deletion modules/33-data-types/55-type-casting/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ var result = 10 + ((int) 5.1);
System.out.println(result); // => 15
```

https://replit.com/@hexlet/java-basics-data-types
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ theory: |
"hexlet".substring(3, 6); // "let"
```

https://replit.com/@hexlet/java-basics-methods-calling-1

instructions: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ searchEngine.replace("go", "mo"); // "moogle"
"hexlet".substring(3, 6); // "let"
```

https://replit.com/@hexlet/java-basics-methods-calling-1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ theory: |
.toLowerCase();
```

https://replit.com/@hexlet/java-basics-methods-chain

Несмотря на удобство этого механизма, им не стоит злоупотреблять. Промежуточные переменные могут упростить понимание кода.

Expand Down
1 change: 0 additions & 1 deletion modules/35-methods-using/120-methods-chain/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@ name = name.trim()
.toLowerCase();
```

https://replit.com/@hexlet/java-basics-methods-chain

Несмотря на удобство этого механизма, им не стоит злоупотреблять. Промежуточные переменные могут упростить понимание кода.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ theory: |
Math.random(); // 0.8839904367241888
```

https://replit.com/@hexlet/java-basics-pure-functions

Зачем это нужно знать? Детерминированность серьезно влияет на многие аспекты. Детерминированные функции удобны в работе, их легко оптимизировать, легко тестировать. Если есть возможность сделать функцию детерминированной, то лучше ее такой и сделать.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ Math.random(); // 0.09856613113197676
Math.random(); // 0.8839904367241888
```

https://replit.com/@hexlet/java-basics-pure-functions

Зачем это нужно знать? Детерминированность серьезно влияет на многие аспекты. Детерминированные функции удобны в работе, их легко оптимизировать, легко тестировать. Если есть возможность сделать функцию детерминированной, то лучше ее такой и сделать.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-return

В этом примере в определении метода использовался `long`, так как возвращается целое число.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class App {
}
```

https://replit.com/@hexlet/java-basics-return

В этом примере в определении метода использовался `long`, так как возвращается целое число.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ theory: |
}
```

https://replit.com/@hexlet/java-basics-methods-parameters-1

Разберем этот код подробнее. `char` говорит нам о типе возвращаемого значения. Далее в скобках указывается тип параметра `String` и его имя `str`.

Expand Down Expand Up @@ -86,7 +85,6 @@ theory: |
App.average(1, 2); // 1.5
```

https://replit.com/@hexlet/java-basics-methods-parameters-2

Методы могут требовать на вход любое количество параметров, которое им нужно для работы:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ class App {
}
```

https://replit.com/@hexlet/java-basics-default-parameters

В этом примере мы не сократили код, но он наглядно показывает принцип, описанный выше.
1 change: 0 additions & 1 deletion modules/45-logic/12-string-comparasion/description.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ theory: |
name1.equals(name2); // true
```

https://replit.com/@hexlet/java-basics-logical-operations

Помимо `equals()`, в строки встроен метод `equalsIgnoreCase()`, который выполняет проверку по значению без учета регистра:

Expand Down
1 change: 0 additions & 1 deletion modules/45-logic/12-string-comparasion/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ var name2 = "java".toUpperCase(); // "JAVA"
name1.equals(name2); // true
```

https://replit.com/@hexlet/java-basics-logical-operations

Помимо `equals()`, в строки встроен метод `equalsIgnoreCase()`, который выполняет проверку по значению без учета регистра:

Expand Down
1 change: 0 additions & 1 deletion modules/45-logic/20-combine-expressions/description.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ theory: |
App.isEven(3); // false
```

https://replit.com/@hexlet/java-basics-logical-operations-1

В одном выражении мы скомбинировали два логических оператора:

Expand Down
1 change: 0 additions & 1 deletion modules/45-logic/20-combine-expressions/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ App.isEven(10); // true
App.isEven(3); // false
```

https://replit.com/@hexlet/java-basics-logical-operations-1

В одном выражении мы скомбинировали два логических оператора:

Expand Down
Loading
Loading