ora1 and ora2 half

This commit is contained in:
2025-09-16 08:26:44 +02:00
commit e0307d947c
24 changed files with 242 additions and 0 deletions

29
ora1/Args/.gitignore vendored Normal file
View File

@@ -0,0 +1,29 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

3
ora1/Args/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

6
ora1/Args/.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_24" default="true" project-jdk-name="24" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
ora1/Args/.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Args.iml" filepath="$PROJECT_DIR$/Args.iml" />
</modules>
</component>
</project>

11
ora1/Args/Args.iml Normal file
View 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>

View File

@@ -0,0 +1,7 @@
public class Runner {
public static void main(String[] args) {
for (int i = 0; i < args.length; i++) {
System.out.println(i + " " + args[i]);
}
}
}

BIN
ora1/HelloWorldApp.class Normal file

Binary file not shown.

BIN
ora1/HelloWorldApp2.class Normal file

Binary file not shown.

BIN
ora1/HelloWorldApp3.class Normal file

Binary file not shown.

BIN
ora1/HelloWorldApp4.class Normal file

Binary file not shown.

BIN
ora1/HelloWorldApp5.class Normal file

Binary file not shown.

29
ora1/Scanner1/.gitignore vendored Normal file
View File

@@ -0,0 +1,29 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

3
ora1/Scanner1/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

6
ora1/Scanner1/.idea/misc.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_24" default="true" project-jdk-name="24" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
ora1/Scanner1/.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Scanner1.iml" filepath="$PROJECT_DIR$/Scanner1.iml" />
</modules>
</component>
</project>

View 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>

View File

@@ -0,0 +1,15 @@
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s;
System.out.println("Adjon egy stringet");
while(scanner.hasNext()){
s = scanner.next();
System.out.println("Ez volt: " + s);
System.out.println("Uj input");
}
}
}

6
ora1/elso.java Normal file
View File

@@ -0,0 +1,6 @@
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!");
System.out.println("Hello");
}
}

18
ora1/harmadik.java Normal file
View File

@@ -0,0 +1,18 @@
import java.io.Console;
class HelloWorldApp3{
public static void main(String[] args){
while(true){
Console con = System.console();
System.out.print("Input: ");
String s = con.readLine();
if(s == null){
break;
}
System.out.println("Inputted: " + s);
}
}
}

10
ora1/masodik.java Normal file
View File

@@ -0,0 +1,10 @@
import java.io.Console;
class HelloWorldApp2{ //input
public static void main(String[] args){
Console con = System.console();
System.out.print("Input: ");
System.out.println("Inputted: " + con.readLine());
}
}

16
ora1/negyedik.java Normal file
View File

@@ -0,0 +1,16 @@
import java.util.Scanner;
class HelloWorldApp4{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
System.out.print("Input: ");
String s = sc.next();
System.out.println("Inputted: " + s);
}
sc.close();
}
}

8
ora1/otodik.java Normal file
View File

@@ -0,0 +1,8 @@
class HelloWorldApp5{
public static void main(String[] args){
for(int i = 0; i < args.length; i++){
System.out.println(args[i]);
}
}
}