mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-21 02:53:15 +08:00
Add automatic linter (#4214)
This commit is contained in:
@ -19,14 +19,10 @@ public class Anagrams {
|
||||
String second = "lead";
|
||||
// All the below methods takes input but doesn't return any output to the main method.
|
||||
Anagrams nm = new Anagrams();
|
||||
System.out.println(
|
||||
nm.approach2(first, second)); /* To activate methods for different approaches*/
|
||||
System.out.println(
|
||||
nm.approach1(first, second)); /* To activate methods for different approaches*/
|
||||
System.out.println(
|
||||
nm.approach3(first, second)); /* To activate methods for different approaches*/
|
||||
System.out.println(
|
||||
nm.approach4(first, second)); /* To activate methods for different approaches*/
|
||||
System.out.println(nm.approach2(first, second)); /* To activate methods for different approaches*/
|
||||
System.out.println(nm.approach1(first, second)); /* To activate methods for different approaches*/
|
||||
System.out.println(nm.approach3(first, second)); /* To activate methods for different approaches*/
|
||||
System.out.println(nm.approach4(first, second)); /* To activate methods for different approaches*/
|
||||
/**
|
||||
* OUTPUT :
|
||||
* first string ="deal" second string ="lead"
|
||||
|
Reference in New Issue
Block a user