style: enable MethodName in CheckStyle (#5182)

enabled: MethodName in CheckStyle
This commit is contained in:
Godwill Christopher
2024-05-27 01:06:06 -06:00
committed by GitHub
parent ea4dc15a24
commit 295e7436b1
53 changed files with 225 additions and 225 deletions

View File

@@ -16,7 +16,7 @@ public final class LongestAlternatingSubsequence {
}
/* Function to return longest alternating subsequence length*/
static int AlternatingLength(int[] arr, int n) {
static int alternatingLength(int[] arr, int n) {
/*
las[i][0] = Length of the longest
@@ -68,6 +68,6 @@ public final class LongestAlternatingSubsequence {
int[] arr = {10, 22, 9, 33, 49, 50, 31, 60};
int n = arr.length;
System.out.println("Length of Longest "
+ "alternating subsequence is " + AlternatingLength(arr, n));
+ "alternating subsequence is " + alternatingLength(arr, n));
}
}