Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5bfa965

Browse files
author
İSMAİL TAŞDELEN
committed
master
1 parent 92a38af commit 5bfa965

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@
5959
/app/Java_Project_66/build/
6060
/app/Java_Project_67/nbproject/private/
6161
/app/Java_Project_67/build/
62-
/app/Java_Project_68/nbproject/private/
62+
/app/Java_Project_68/nbproject/private/
63+
/app/Java_Project_68/build/

app/Java_Project_68/src/java_project_68/Java_Project_68.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* and open the template in the editor.
55
*/
66
package java_project_68;
7-
7+
import java.util.Scanner;
88
/**
99
*
1010
* @author ismailtasdelen
@@ -16,6 +16,11 @@ public class Java_Project_68 {
1616
*/
1717
public static void main(String[] args) {
1818
// TODO code application logic here
19+
Scanner tara = new Scanner(System.in);
20+
new_class hesapla_1 = new new_class();
21+
System.out.println(hesapla_1.en);
22+
new_class hesapla_2 = new new_class();
23+
System.out.println(hesapla_2.en);
1924
}
2025

2126
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
package java_project_68;
7+
8+
/**
9+
*
10+
* @author ismailtasdelen
11+
*/
12+
public class new_class {
13+
public double en;
14+
public double boy;
15+
public new_class()
16+
{
17+
en = 10;
18+
}
19+
public double dortgen_alan_hesapla()
20+
{
21+
return en * boy;
22+
}
23+
}

0 commit comments

Comments
 (0)