-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor .gitignore and MyTransformer.java
- Refactor .gitignore to include Java and IntelliJ IDEA generated files, and miscellaneous files. - Update MyTransformer.java to intercept the return value of the getAge() method in the Example class.
- Loading branch information
Showing
3 changed files
with
46 additions
and
7 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 |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# Compiled source | ||
**/out/ | ||
**.jar | ||
# Java | ||
**.jar | ||
# Intellij idea generated files | ||
.idea | ||
*.iml | ||
# misc | ||
*.zip |
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
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 |
---|---|---|
@@ -1,7 +1,24 @@ | ||
package theapp; | ||
class Example{ | ||
private final int age; | ||
public Example(int age){ | ||
this.age = age; | ||
} | ||
|
||
public int getAge(){ | ||
return age; | ||
} | ||
} | ||
class HelloWorld { | ||
|
||
public static String myFunction(int x, int y, String z) { | ||
return String.valueOf(x + y) + "_" + z; | ||
} | ||
|
||
public static void main(String []args) { | ||
System.out.println("Hello World! ๐"); | ||
Example example = new Example(25); | ||
int age = example.getAge(); | ||
System.out.println("Hi my Age is " + age); | ||
} | ||
} |