mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2026-04-03 13:51:50 +03:00
Compare commits
11 Commits
83b275cefd
...
ІО-24/30-Ф
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdad651c7f | ||
|
|
9d3fc9e85d | ||
|
|
f07b3b6617 | ||
|
|
1f0c160216 | ||
|
|
511422ad6c | ||
|
|
4f86e8cf76 | ||
|
|
9493c4974d | ||
|
|
66089802cc | ||
|
|
bbb463871e | ||
|
|
a7a259d3c6 | ||
|
|
8b6da131a0 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,3 +1,2 @@
|
|||||||
Java/Lab 1/Lab_1.class
|
# Project exclude paths
|
||||||
.gitignore
|
/out/
|
||||||
Java/Lab 2/Lab_2.class
|
|
||||||
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
6
.idea/misc.xml
generated
Normal file
6
.idea/misc.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_18" default="true" project-jdk-name="openjdk-18" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/OOP_IO-2x_2023.iml" filepath="$PROJECT_DIR$/OOP_IO-2x_2023.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
124
.idea/uiDesigner.xml
generated
Normal file
124
.idea/uiDesigner.xml
generated
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Palette2">
|
||||||
|
<group name="Swing">
|
||||||
|
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Button" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="RadioButton" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="CheckBox" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Label" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||||
|
<preferred-size width="-1" height="20" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
</group>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
import java.util.Scanner;
|
|
||||||
|
|
||||||
public class Lab_1 {
|
|
||||||
|
|
||||||
public static int protectedInput(String variable_to_read, Scanner input) {
|
|
||||||
int read_variable;
|
|
||||||
do {
|
|
||||||
try {
|
|
||||||
System.out.printf("Enter %s: ", variable_to_read);
|
|
||||||
read_variable = input.nextInt();
|
|
||||||
break;
|
|
||||||
} catch (Exception e) {
|
|
||||||
System.out.printf("%s must be an integer.\n", variable_to_read.toUpperCase());
|
|
||||||
input.nextLine();
|
|
||||||
}
|
|
||||||
} while (true);
|
|
||||||
return read_variable;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
int n, m, a, b;
|
|
||||||
|
|
||||||
Scanner input = new Scanner(System.in);
|
|
||||||
|
|
||||||
n = protectedInput("n", input);
|
|
||||||
|
|
||||||
m = protectedInput("m", input);
|
|
||||||
|
|
||||||
a = protectedInput("a", input);
|
|
||||||
|
|
||||||
b = protectedInput("b", input);
|
|
||||||
|
|
||||||
input.close();
|
|
||||||
|
|
||||||
float s = ((float) (b + m) / 2) * (m - b + 1) * (n - a + 1);
|
|
||||||
|
|
||||||
System.out.println("S = " + s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
import java.util.Scanner;
|
|
||||||
|
|
||||||
public class Lab_2 {
|
|
||||||
|
|
||||||
public static short protectedInput(String inputPrompt, String errorMessage, Scanner input) {
|
|
||||||
short read_variable;
|
|
||||||
|
|
||||||
do {
|
|
||||||
try {
|
|
||||||
System.out.println();
|
|
||||||
System.out.print(inputPrompt);
|
|
||||||
|
|
||||||
read_variable = input.nextShort();
|
|
||||||
break;
|
|
||||||
} catch (Exception e) {
|
|
||||||
System.out.println(errorMessage);
|
|
||||||
input.nextLine();
|
|
||||||
}
|
|
||||||
} while (true);
|
|
||||||
|
|
||||||
return read_variable;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String format(int number) {
|
|
||||||
int width = String.valueOf(number).length() + 1;
|
|
||||||
String format = "|%" + width + "d ";
|
|
||||||
|
|
||||||
return format;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static double average(short[] row) {
|
|
||||||
short sum = 0;
|
|
||||||
|
|
||||||
for (short element : row) {
|
|
||||||
sum += element;
|
|
||||||
}
|
|
||||||
|
|
||||||
double result = sum / row.length;
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
short a, rows = 0, columns = 0;
|
|
||||||
String format;
|
|
||||||
|
|
||||||
Scanner input = new Scanner(System.in);
|
|
||||||
|
|
||||||
a = protectedInput("Input a constant to multipy a matrix by: ",
|
|
||||||
"A constant must be a short-data type integer, try again.", input);
|
|
||||||
|
|
||||||
System.out.println();
|
|
||||||
System.out.println("Input size of the matrix.");
|
|
||||||
|
|
||||||
do {
|
|
||||||
rows = protectedInput("Rows: ",
|
|
||||||
"A number of rows must be a short-data type integer, try again.", input);
|
|
||||||
} while (rows <= 0);
|
|
||||||
|
|
||||||
do {
|
|
||||||
columns = protectedInput("Columns: ",
|
|
||||||
"A number of columns must be a short-data type integer, try again.", input);
|
|
||||||
} while (columns <= 0);
|
|
||||||
|
|
||||||
input.close();
|
|
||||||
|
|
||||||
short[][] matrix_B = new short[rows][columns];
|
|
||||||
|
|
||||||
System.out.println();
|
|
||||||
System.out.println("Matrix B:");
|
|
||||||
|
|
||||||
format = format(rows * columns);
|
|
||||||
|
|
||||||
for (short i = 0; i < rows; i++) {
|
|
||||||
for (short j = 0; j < columns; j++) {
|
|
||||||
matrix_B[i][j] = (short) ((i + 1) * (j + 1));
|
|
||||||
|
|
||||||
System.out.printf(format, matrix_B[i][j]);
|
|
||||||
}
|
|
||||||
|
|
||||||
System.out.println("|");
|
|
||||||
}
|
|
||||||
|
|
||||||
System.out.println();
|
|
||||||
System.out.println("Matrix a×B:");
|
|
||||||
|
|
||||||
format = format(rows * columns * a);
|
|
||||||
|
|
||||||
for (short i = 0; i < matrix_B.length; i++) {
|
|
||||||
for (short j = 0; j < matrix_B[i].length; j++) {
|
|
||||||
matrix_B[i][j] *= (short) (a);
|
|
||||||
|
|
||||||
System.out.printf(format, matrix_B[i][j]);
|
|
||||||
}
|
|
||||||
|
|
||||||
System.out.println("|");
|
|
||||||
}
|
|
||||||
|
|
||||||
System.out.println();
|
|
||||||
System.out.println("Averages of each row:");
|
|
||||||
|
|
||||||
for (short[] row : matrix_B) {
|
|
||||||
System.out.println(average(row));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
184
Lab5
Normal file
184
Lab5
Normal file
@@ -0,0 +1,184 @@
|
|||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
class Letter {
|
||||||
|
private char value;
|
||||||
|
|
||||||
|
public Letter(char value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public char getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Word {
|
||||||
|
private List<Letter> letters = new ArrayList<>();
|
||||||
|
|
||||||
|
public Word(String input) {
|
||||||
|
for (char c : input.toCharArray()) {
|
||||||
|
letters.add(new Letter(c));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Letter> getLetters() {
|
||||||
|
return letters;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
for (Letter letter : letters) {
|
||||||
|
sb.append(letter.getValue());
|
||||||
|
}
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class PunctuationMark {
|
||||||
|
private char value;
|
||||||
|
|
||||||
|
public PunctuationMark(char value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public char getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Sentence {
|
||||||
|
private List<Object> elements = new ArrayList<>();
|
||||||
|
|
||||||
|
public Sentence(String input) {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
for (char c : input.toCharArray()) {
|
||||||
|
if (Character.isLetterOrDigit(c)) {
|
||||||
|
sb.append(c);
|
||||||
|
} else {
|
||||||
|
if (sb.length() > 0) {
|
||||||
|
elements.add(new Word(sb.toString()));
|
||||||
|
sb.setLength(0);
|
||||||
|
}
|
||||||
|
elements.add(new PunctuationMark(c));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sb.length() > 0) {
|
||||||
|
elements.add(new Word(sb.toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Object> getElements() {
|
||||||
|
return elements;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
for (Object element : elements) {
|
||||||
|
if (element instanceof Word) {
|
||||||
|
sb.append(((Word) element).toString());
|
||||||
|
} else {
|
||||||
|
sb.append(((PunctuationMark) element).getValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Text {
|
||||||
|
private List<Sentence> sentences = new ArrayList<>();
|
||||||
|
|
||||||
|
public Text(String input) {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
for (char c : input.toCharArray()) {
|
||||||
|
if (c == '.' || c == '?' || c == '!' || c == ',') {
|
||||||
|
sb.append(c);
|
||||||
|
sentences.add(new Sentence(sb.toString()));
|
||||||
|
sb.setLength(0);
|
||||||
|
} else {
|
||||||
|
sb.append(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sb.length() > 0) {
|
||||||
|
sentences.add(new Sentence(sb.toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Sentence> getSentences() {
|
||||||
|
return sentences;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
for (Sentence sentence : sentences) {
|
||||||
|
sb.append(sentence.toString());
|
||||||
|
}
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Lab5 {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
int C17 = 2430 % 17;
|
||||||
|
System.out.println("\n---------------------------------------------------------------------------------------------------------------------");
|
||||||
|
System.out.println(" C17 = " + C17 + ", So, the task is: delete all previous occurrences of the last letter of each word of the specified text.");
|
||||||
|
System.out.println("---------------------------------------------------------------------------------------------------------------------");
|
||||||
|
|
||||||
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
boolean isDone = false;
|
||||||
|
while (!isDone) {
|
||||||
|
System.out.print("\nEnter a string or type 'q' to quit: ");
|
||||||
|
String input = scanner.nextLine().trim();
|
||||||
|
if (input.equals("q")) {
|
||||||
|
System.out.print("\n The work is completed.");
|
||||||
|
isDone = true;
|
||||||
|
} else if (input.isEmpty()) {
|
||||||
|
System.out.println("Error: Input string is empty. Please enter a non-empty string.");
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
StringBuilder sb = new StringBuilder(input);
|
||||||
|
String[] words = sb.toString().split("\\s+");
|
||||||
|
for (int i = 0; i < words.length; i++) {
|
||||||
|
String word = words[i];
|
||||||
|
char lastChar = word.charAt(word.length() - 1);
|
||||||
|
if (!Character.isLetterOrDigit(lastChar)) {
|
||||||
|
int lastLetterIndex = -1;
|
||||||
|
for (int j = word.length() - 2; j >= 0; j--) {
|
||||||
|
if (Character.isLetter(word.charAt(j))) {
|
||||||
|
lastLetterIndex = j;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (lastLetterIndex != -1) {
|
||||||
|
char lastLetter = word.charAt(lastLetterIndex);
|
||||||
|
String newWord = "";
|
||||||
|
for (int j = 0; j < word.length() - 1; j++) {
|
||||||
|
if (!Character.isLetterOrDigit(word.charAt(j)) || word.charAt(j) != lastLetter) {
|
||||||
|
newWord += word.charAt(j);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
newWord += lastChar;
|
||||||
|
words[i] = newWord;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
char lastLetter = lastChar;
|
||||||
|
String newWord = "";
|
||||||
|
for (int j = 0; j < word.length() - 1; j++) {
|
||||||
|
if (!Character.isLetterOrDigit(word.charAt(j)) || word.charAt(j) != lastLetter) {
|
||||||
|
newWord += word.charAt(j);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
newWord += lastLetter;
|
||||||
|
words[i] = newWord;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
System.out.print("\n Final string: ");
|
||||||
|
System.out.println(String.join(" ", words));
|
||||||
|
} catch (Exception e) {
|
||||||
|
System.out.println("An error occurred: " + e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
225
Lab6
Normal file
225
Lab6
Normal file
@@ -0,0 +1,225 @@
|
|||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Scanner;
|
||||||
|
import java.util.Comparator;
|
||||||
|
|
||||||
|
class ToyRoom {
|
||||||
|
|
||||||
|
public static void variant() {
|
||||||
|
int C13 = 2430 % 13;
|
||||||
|
System.out.println("\n ---------------------------------------------------------------------------------------------------------------------");
|
||||||
|
System.out.println(" C13 = " + C13 + ", So, the task is: Prepare the toy room for children of different age groups.");
|
||||||
|
System.out.println(" ---------------------------------------------------------------------------------------------------------------------");
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<Toy> toys;
|
||||||
|
|
||||||
|
public ToyRoom() {
|
||||||
|
this.toys = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addToy(Toy toy) {
|
||||||
|
toys.add(toy);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void displayToys() {
|
||||||
|
System.out.println(" -------------------------------------------------------");
|
||||||
|
System.out.printf(" | %-20s | %-10s | %-15s |\n", "Name", "Price ($)", "Age Group");
|
||||||
|
System.out.println(" |----------------------|------------|-----------------|");
|
||||||
|
for (Toy toy : toys) {
|
||||||
|
System.out.printf(" | %-20s | %-10.2f | %-15s |\n", toy.name, toy.price, toy.ageGroup);
|
||||||
|
}
|
||||||
|
System.out.println(" -------------------------------------------------------");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void sortToys(boolean ascending) {
|
||||||
|
if (ascending) {
|
||||||
|
toys.sort(Comparator.comparingDouble(Toy::getPrice));
|
||||||
|
} else {
|
||||||
|
toys.sort(Comparator.comparingDouble(Toy::getPrice).reversed());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Toy> findToysByPriceRange(double minPrice, double maxPrice) {
|
||||||
|
List<Toy> foundToys = new ArrayList<>();
|
||||||
|
for (Toy toy : toys) {
|
||||||
|
if (toy.getPrice() >= minPrice && toy.getPrice() <= maxPrice) {
|
||||||
|
foundToys.add(toy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return foundToys;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void findToysByName(String name) {
|
||||||
|
List<Toy> foundToys = new ArrayList<>();
|
||||||
|
for (Toy toy : toys) {
|
||||||
|
if (toy.name.toLowerCase().contains(name.toLowerCase())) {
|
||||||
|
foundToys.add(toy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!foundToys.isEmpty()) {
|
||||||
|
System.out.println("\n Toys with matching name \"" + name + "\":");
|
||||||
|
System.out.println(" -------------------------------------------------------");
|
||||||
|
System.out.printf(" | %-20s | %-10s | %-15s |\n", "Name", "Price ($)", "Age Group");
|
||||||
|
System.out.println(" |----------------------|------------|-----------------|");
|
||||||
|
for (Toy toy : foundToys) {
|
||||||
|
System.out.printf(" | %-20s | %-10.2f | %-15s |\n", toy.name, toy.price, toy.ageGroup);
|
||||||
|
}
|
||||||
|
System.out.println(" -------------------------------------------------------");
|
||||||
|
} else {
|
||||||
|
System.out.println(" No toys found with a matching name.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
abstract class Toy {
|
||||||
|
protected String name;
|
||||||
|
protected double price;
|
||||||
|
protected String ageGroup;
|
||||||
|
|
||||||
|
public Toy(String name, double price, String ageGroup) {
|
||||||
|
this.name = name;
|
||||||
|
this.price = price;
|
||||||
|
this.ageGroup = ageGroup;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getPrice() {
|
||||||
|
return price;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return name + " - $" + price + ageGroup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Car extends Toy {
|
||||||
|
public Car(String name, double price, String ageGroup) {
|
||||||
|
super(name, price, ageGroup);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Doll extends Toy {
|
||||||
|
public Doll(String name, double price, String ageGroup) {
|
||||||
|
super(name, price, ageGroup);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Ball extends Toy {
|
||||||
|
public Ball(String name, double price, String ageGroup) {
|
||||||
|
super(name, price, ageGroup);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Cube extends Toy {
|
||||||
|
public Cube(String name, double price, String ageGroup) {
|
||||||
|
super(name, price, ageGroup);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Lab6 {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
ToyRoom toyRoom = new ToyRoom();
|
||||||
|
ToyRoom.variant();
|
||||||
|
|
||||||
|
toyRoom.addToy(new Car("Small car 'Mcqueen'", 10.0, "1-3 years"));
|
||||||
|
toyRoom.addToy(new Car("Small Car 'Audi'", 12.0, "1-3 years"));
|
||||||
|
toyRoom.addToy(new Car("Medium Yellow Car", 15.0, "3-6 years"));
|
||||||
|
toyRoom.addToy(new Car("Medium Blue Car", 18.0, "3-6 years"));
|
||||||
|
toyRoom.addToy(new Car("Car on R/C", 30.0, "6-10 years"));
|
||||||
|
toyRoom.addToy(new Doll("Doll that can talk", 25.0, "1-3 years"));
|
||||||
|
toyRoom.addToy(new Doll("Doll 'Barbie'", 10.0, "3-6 years"));
|
||||||
|
toyRoom.addToy(new Doll("Bear Teddy", 14.5, "6-12 months"));
|
||||||
|
toyRoom.addToy(new Ball("Yellow Ball", 5.0, "6-12 months"));
|
||||||
|
toyRoom.addToy(new Ball("Big Blue Ball", 7.0, "1-3 years"));
|
||||||
|
toyRoom.addToy(new Ball("Football Ball", 12.5, "6-10 years"));
|
||||||
|
toyRoom.addToy(new Cube("Cubes with pictures", 6.5, "6-12 months"));
|
||||||
|
toyRoom.addToy(new Cube("Cubes with letters", 9.0, "3-6 years"));
|
||||||
|
toyRoom.addToy(new Cube("Rubik's Cube", 14.0, "6-10 years"));
|
||||||
|
|
||||||
|
boolean exit = false;
|
||||||
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
|
||||||
|
while (!exit) {
|
||||||
|
System.out.println("\n Select an option:");
|
||||||
|
System.out.println(" 1 - Display all toys;");
|
||||||
|
System.out.println(" 2 - Find toy by price range;");
|
||||||
|
System.out.println(" 3 - Sort toys by price;");
|
||||||
|
System.out.println(" 4 - Find a toy by name;");
|
||||||
|
System.out.println(" Q - Quit;\n");
|
||||||
|
|
||||||
|
String option = scanner.nextLine();
|
||||||
|
|
||||||
|
switch (option.toLowerCase()) {
|
||||||
|
case "1":
|
||||||
|
System.out.println(" Toys in the Toy Room:");
|
||||||
|
toyRoom.displayToys();
|
||||||
|
break;
|
||||||
|
case "2":
|
||||||
|
System.out.print(" Enter the minimum price for the toy: ");
|
||||||
|
double minPrice = scanner.nextDouble();
|
||||||
|
scanner.nextLine();
|
||||||
|
|
||||||
|
System.out.print(" Enter the maximum price for the toy: ");
|
||||||
|
double maxPrice;
|
||||||
|
do {
|
||||||
|
maxPrice = scanner.nextDouble();
|
||||||
|
scanner.nextLine();
|
||||||
|
|
||||||
|
if (minPrice >= maxPrice) {
|
||||||
|
System.out.println(" Error: The minimum price must be less than the maximum price. Please try again.");
|
||||||
|
System.out.print(" Enter the maximum price for the toy: ");
|
||||||
|
}
|
||||||
|
} while (minPrice >= maxPrice);
|
||||||
|
|
||||||
|
List<Toy> foundToys = toyRoom.findToysByPriceRange(minPrice, maxPrice);
|
||||||
|
if (!foundToys.isEmpty()) {
|
||||||
|
System.out.println("\n Found toys within the price range:");
|
||||||
|
System.out.println(" -------------------------------------------------------");
|
||||||
|
System.out.printf(" | %-20s | %-10s | %-15s |\n", "Name", "Price ($)", "Age Group");
|
||||||
|
System.out.println(" |----------------------|------------|-----------------|");
|
||||||
|
for (Toy toy : foundToys) {
|
||||||
|
System.out.printf(" | %-20s | %-10.2f | %-15s |\n", toy.name, toy.price, toy.ageGroup);
|
||||||
|
}
|
||||||
|
System.out.println(" -------------------------------------------------------");
|
||||||
|
} else {
|
||||||
|
System.out.println("\n No toys found within the price range.");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "3":
|
||||||
|
System.out.println(" Choose the sorting order:");
|
||||||
|
System.out.println(" A - Ascending");
|
||||||
|
System.out.println(" D - Descending");
|
||||||
|
String sortOrder = scanner.nextLine();
|
||||||
|
|
||||||
|
boolean ascending = true;
|
||||||
|
if (sortOrder.equalsIgnoreCase("D")) {
|
||||||
|
ascending = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
toyRoom.sortToys(ascending);
|
||||||
|
System.out.println("\n Toys in the Toy Room after sorting:");
|
||||||
|
toyRoom.displayToys();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "4":
|
||||||
|
System.out.print(" Enter the toy name: ");
|
||||||
|
String toyName = scanner.nextLine();
|
||||||
|
|
||||||
|
toyRoom.findToysByName(toyName);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "q":
|
||||||
|
exit = true;
|
||||||
|
System.out.println(" Program exited. Thank you!");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
System.out.println(" Invalid option. Please try again.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
OOP_IO-2x_2023.iml
Normal file
11
OOP_IO-2x_2023.iml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
16
Rust/lab_1/Cargo.lock
generated
16
Rust/lab_1/Cargo.lock
generated
@@ -1,16 +0,0 @@
|
|||||||
# This file is automatically @generated by Cargo.
|
|
||||||
# It is not intended for manual editing.
|
|
||||||
version = 3
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "lab_1"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"text_io",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "text_io"
|
|
||||||
version = "0.1.12"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "d5f0c8eb2ad70c12a6a69508f499b3051c924f4b1cfeae85bfad96e6bc5bba46"
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[package]
|
|
||||||
name = "lab_1"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
text_io = "0.1.12"
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
fn main() {
|
|
||||||
// use text_io::scan;
|
|
||||||
use text_io::read;
|
|
||||||
|
|
||||||
print!("Input: ");
|
|
||||||
|
|
||||||
// read until a whitespace and try to convert what was read into an i32
|
|
||||||
let a: i32 = read!();
|
|
||||||
|
|
||||||
/* let i: u32;
|
|
||||||
print!("Input: ");
|
|
||||||
scan!("{}", i); */
|
|
||||||
|
|
||||||
println!("You have input: {}", a);
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc_fingerprint":1109913473729500203,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/rhinemann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.69.0 (84c898d65 2023-04-16)\nbinary: rustc\ncommit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.69.0\nLLVM version: 15.0.7\n","stderr":""}},"successes":{}}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Signature: 8a477f597d28d172789f06886806bc55
|
|
||||||
# This file is a cache directory tag created by cargo.
|
|
||||||
# For information about cache directory tags see https://bford.info/cachedir/
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":9251013656241001069,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,16250147254765824332]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-21a9cdc6153637a5/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
This file has an mtime of when this was started.
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
{"message":"unexpected end of macro invocation","code":null,"level":"error","spans":[{"file_name":"src/main.rs","byte_start":179,"byte_end":186,"line_start":8,"line_end":8,"column_start":18,"column_end":25,"is_primary":true,"text":[{"text":" let a: i32 = scan!();","highlight_start":18,"highlight_end":25}],"label":"missing tokens in macro arguments","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"while trying to match meta-variable `$text:expr`","code":null,"level":"note","spans":[{"file_name":"/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs","byte_start":6858,"byte_end":6868,"line_start":225,"line_end":225,"column_start":6,"column_end":16,"is_primary":true,"text":[{"text":" ($text:expr, $($arg:expr),*) => {","highlight_start":6,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: unexpected end of macro invocation\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/main.rs:8:18\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m8\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m let a: i32 = scan!();\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mmissing tokens in macro arguments\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;10mnote\u001b[0m\u001b[0m: while trying to match meta-variable `$text:expr`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0m/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:225:6\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m225\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m ($text:expr, $($arg:expr),*) => {\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;10m^^^^^^^^^^\u001b[0m\n\n"}
|
|
||||||
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: aborting due to previous error\u001b[0m\n\n"}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
d97c05c8356d63be
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":7309141686862299243,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,18437410369655646666]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-68601d683e1e8856/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
This file has an mtime of when this was started.
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
This file has an mtime of when this was started.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
1e31ad2d831b958b
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":1021633075455700787,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-6de41bec606e8613/dep-test-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
This file has an mtime of when this was started.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
03a82760ea6c966b
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":1021633075455700787,"path":1684066648322511884,"deps":[[11548802147292551847,"text_io",false,18437410369655646666]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-c6f8d37b6207cc41/dep-test-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
8860c7066aee2306
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc":3257411903276762393,"features":"[]","target":17142004090379113646,"profile":7309141686862299243,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/lab_1-ec33eeac96f0d2fc/dep-bin-lab_1"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
This file has an mtime of when this was started.
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
This file has an mtime of when this was started.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
4c291bccd41e84e1
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc":3257411903276762393,"features":"[]","target":9368524284222934410,"profile":12637318739757120569,"path":17386512851369609810,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/text_io-2d13b918f35cc59d/dep-lib-text_io"}}],"rustflags":[],"metadata":10716249605224554386,"config":2202906307356721367,"compile_kind":0}
|
|
||||||
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
This file has an mtime of when this was started.
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
caa96dad0bd7deff
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"rustc":3257411903276762393,"features":"[]","target":9368524284222934410,"profile":3735503092003429423,"path":17386512851369609810,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/text_io-8f0db3acf1dd6458/dep-lib-text_io"}}],"rustflags":[],"metadata":10716249605224554386,"config":2202906307356721367,"compile_kind":0}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5: src/main.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-21a9cdc6153637a5.d: src/main.rs
|
|
||||||
|
|
||||||
src/main.rs:
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.rmeta: src/main.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-68601d683e1e8856.d: src/main.rs
|
|
||||||
|
|
||||||
src/main.rs:
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.rmeta: src/main.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-6de41bec606e8613.d: src/main.rs
|
|
||||||
|
|
||||||
src/main.rs:
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.rmeta: src/main.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-c6f8d37b6207cc41.d: src/main.rs
|
|
||||||
|
|
||||||
src/main.rs:
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.rmeta: src/main.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/lab_1-ec33eeac96f0d2fc.d: src/main.rs
|
|
||||||
|
|
||||||
src/main.rs:
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
|||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.rmeta: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/libtext_io-2d13b918f35cc59d.rlib: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-2d13b918f35cc59d.d: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
|
||||||
|
|
||||||
/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.rmeta: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
|
||||||
|
|
||||||
/home/rhinemann/Disc_D/OOP/OOP/Rust/lab_1/target/debug/deps/text_io-8f0db3acf1dd6458.d: /home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs
|
|
||||||
|
|
||||||
/home/rhinemann/.cargo/registry/src/github.com-1ecc6299db9ec823/text_io-0.1.12/src/lib.rs:
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user