File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- /*
2
- * An illustration of user defined generics method
3
- * */
1
+ /**
2
+ * An illustration of user defined generics method
3
+ */
4
4
public class GenericsMethod {
5
5
6
6
// Created a generic method of type T
Original file line number Diff line number Diff line change 1
1
public class MethodOverloadingExample {
2
2
/**
3
3
* Method Overloading is basically same method name but with different method signature
4
- * @param args
5
4
*/
6
5
7
6
public static void main (String [] args ) {
Original file line number Diff line number Diff line change 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
+ */
3
4
public class ReverseString {
4
5
5
6
public static void main (String [] args ) {
Original file line number Diff line number Diff line change 2
2
3
3
public class ScannerClass {
4
4
5
- // Scanner class to take input from user
5
+ /**
6
+ * Scanner class to take input from user
7
+ */
6
8
public static void main (String [] args ) {
7
9
8
10
Scanner scan = new Scanner (System .in );
You can’t perform that action at this time.
0 commit comments