Skip to content

Instantly share code, notes, and snippets.

View AlexRomanofff's full-sized avatar

AlexRomanofff

View GitHub Profile
import java.util.List;
public class TestText {
public static void main(String[] args) {
Text text = new Text();
List<String> words = text.convertString("i 154want this text!!! will {be} sorted, by 12digits start and then words 4length ");
text.printText(words);
}
}
package testing_task;
import java.time.LocalDate;
public class Product implements Comparable<Product> {
private static int idCounter;
private int id;
private String name;
package testing_task;
import java.time.LocalDate;
public class Product implements Comparable<Product> {
private static int idCounter;
private int id;
private String name;
package loto;
import java.util.Arrays;
import java.util.Random;
public class Loto {
private int count;
private int happyBalls;
private int [] box;
private int [] happyBox;
package group;
public class Group {
private Person [] persons;
private int index;
public Group(int maxIndex) {
persons = new Person[maxIndex];
}
package lesson6;
public class Task2 {
public static void main(String[] args) {
int [] a = {-11,-5,-23,5,6};
System.out.println(sumNegative(a));
}
public static int sumNegative (int [] a) {
package homework;
import java.util.Scanner;
public class Factorial {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("input number from 4 to 12");
int a = sc.nextInt();
package homework;
public class Task6 {
public static void main(String[] args) {
checking();
}
public static void checking() {
package homework;
import java.util.Scanner;
public class Factorial {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("input number from 4 to 12");
int a = sc.nextInt();
package homework;
public class Triangle {
public static void main(String[] args) {
drawFigure(5);
}
public static void drawFigure(int size) {