28 June 2025 added
This commit is contained in:
parent
eab2eb9179
commit
2f0f448d94
1 changed files with 30 additions and 0 deletions
30
28june2025/Main.java
Normal file
30
28june2025/Main.java
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
public static void print(Object var) {
|
||||||
|
System.out.println(var);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String input() {
|
||||||
|
// sen neymişsin overloading
|
||||||
|
return input(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String input(String var) {
|
||||||
|
if (var != null) {
|
||||||
|
System.out.print(var);
|
||||||
|
}
|
||||||
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
return scanner.nextLine();
|
||||||
|
//need garbage collector
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
print("Sa");
|
||||||
|
print(2);
|
||||||
|
print(input("maraba "));
|
||||||
|
print(input());
|
||||||
|
double sayi1 = Double.parseDouble(input("Sayı gir eşşek "));
|
||||||
|
print(sayi1);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue