Skip to content

Commit 88dec10

Browse files
committed
Updated the comments and refactored code
1 parent 9b130cd commit 88dec10

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/GenericsMethod.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/*
2-
* An illustration of user defined generics method
3-
* */
1+
/**
2+
* An illustration of user defined generics method
3+
*/
44
public class GenericsMethod {
55

66
// Created a generic method of type T

src/MethodOverloadingExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
public class MethodOverloadingExample {
22
/**
33
* Method Overloading is basically same method name but with different method signature
4-
* @param args
54
*/
65

76
public static void main(String[] args) {

src/ReverseString.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// Java program to Reverse a String by converting string to characters one by one
2-
1+
/**
2+
* Java program to Reverse a String by converting string to characters one by one
3+
*/
34
public class ReverseString {
45

56
public static void main(String[] args) {

src/ScannerClass.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
public class ScannerClass {
44

5-
// Scanner class to take input from user
5+
/**
6+
* Scanner class to take input from user
7+
*/
68
public static void main(String[] args) {
79

810
Scanner scan = new Scanner(System.in);

0 commit comments

Comments
 (0)