style: enable MultipleVariableDeclarations in checkstyle (#5175)

Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
This commit is contained in:
vaibhav9t1
2024-05-25 23:48:27 +05:30
committed by GitHub
parent 44ce6e7b0d
commit 9eaa2bb756
82 changed files with 299 additions and 121 deletions

View File

@ -66,8 +66,10 @@ public class HashMapCuckooHashing {
*/
public void insertKey2HashTable(int key) {
Integer wrappedInt = key, temp;
int hash, loopCounter = 0;
Integer wrappedInt = key;
Integer temp;
int hash;
int loopCounter = 0;
if (isFull()) {
System.out.println("Hash table is full, lengthening & rehashing table");

View File

@ -7,7 +7,8 @@ public final class Main {
}
public static void main(String[] args) {
int choice, key;
int choice;
int key;
HashMap h = new HashMap(7);
Scanner In = new Scanner(System.in);

View File

@ -7,7 +7,8 @@ public final class MainCuckooHashing {
}
public static void main(String[] args) {
int choice, key;
int choice;
int key;
HashMapCuckooHashing h = new HashMapCuckooHashing(7);
Scanner In = new Scanner(System.in);