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
Private Sub CommandButton1_Click() | |
For x = 3 To 50 | |
If ActiveSheet.Rows(x).OutlineLevel = 1 Then | |
Range("A" & x).Value = Range("C" & x).Value | |
ElseIf ActiveSheet.Rows(x).OutlineLevel = 2 Then | |
Range("B" & x).Value = Range("C" & x).Value | |
End If | |
Next x | |
End Sub |
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
public interface IDictionary { | |
/** | |
* Помещает значение в ячейку с указанным ключем | |
* @param key - ключ | |
* @param value - значение | |
* @return true - если помещение успешно, иначе - false | |
*/ | |
boolean put(String key, String value); |
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.HashMap; | |
import java.util.Map; | |
public class Dictionary implements IDictionary { | |
private Node root = new Node(); | |
private static class Node { | |
Map<Character, Node> children = new HashMap<>(); | |
Node parent = 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.util.ArrayList; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { | |
String stringOne; | |
String stringTwo; | |
if (args.length > 2) { | |
stringOne = args[0]; |
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 dsl | |
def ctx = context(scope: scriptScope()) | |
contributor ([ctx]) { | |
property name:"subject", | |
type:"ru.naumen.core.server.script.spi.IScriptDtObject", | |
doc: "Объект, над которым происходит действие" | |
property name:"oldSubject", | |
type:"ru.naumen.core.server.script.spi.IScriptDtObject", |
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
String str1 = 'testqtest.' //Тут можете ввод с клавиатуры сделать | |
char[] chars = str1.getChars() //Получаем массив символов | |
String result = '' //результат в начале - пустая строка | |
for (int i = 0; i < chars.length; i++) | |
{ | |
char currentSymbol = chars[i] // Получаем текущий символ | |
if (currentSymbol == 'q') //Если текущий символ - это q |