-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d34986
commit 9d413c2
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "Java.App", | ||
"projectName": "java_c87954b4" | ||
}, | ||
{ | ||
"type": "java", | ||
"name": "CodeLens (Launch) - App", | ||
"request": "launch", | ||
"mainClass": "App", | ||
"projectName": "java_c87954b4" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package Java; | ||
|
||
public class App { | ||
|
||
public static void main(String[] args) { | ||
App app = new App(); | ||
|
||
App.App2 app2 = app.new App2("Coder Shiyar"); | ||
// app2.print_message(); | ||
} | ||
|
||
class App2{ | ||
public void print_message(){ | ||
System.out.println("تم تشغيل ميتود الذي يتواجد ضمن ال كلاس الداخلي"); | ||
} | ||
App2(){ | ||
System.out.println("تم تشغيل كونستركتور كلاس الداخلي"); | ||
} | ||
|
||
App2(String name){ | ||
System.out.println("Name: " + name); | ||
} | ||
|
||
} | ||
|
||
} |