style: enable AvoidStarImport in checkstyle (#5141)

This commit is contained in:
Piotr Idzik
2024-05-05 20:48:56 +02:00
committed by GitHub
parent dc47e0aa42
commit 414835db11
188 changed files with 479 additions and 310 deletions

View File

@ -1,6 +1,8 @@
package com.thealgorithms.others;
import java.util.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Conway {

View File

@ -15,7 +15,10 @@ package com.thealgorithms.others;
* https://rosettacode.org/wiki/Dijkstra%27s_algorithm#Java Also most of the
* comments are from RosettaCode.
*/
import java.util.*;
import java.util.HashMap;
import java.util.Map;
import java.util.NavigableSet;
import java.util.TreeSet;
public class Dijkstra {

View File

@ -1,6 +1,6 @@
package com.thealgorithms.others;
import java.util.*;
import java.util.Scanner;
public class InsertDeleteInArray {

View File

@ -1,6 +1,8 @@
package com.thealgorithms.others;
import java.awt.*;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

View File

@ -1,6 +1,6 @@
package com.thealgorithms.others;
import java.awt.*;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

View File

@ -1,6 +1,6 @@
package com.thealgorithms.others;
import java.util.*;
import java.util.Scanner;
class PageRank {

View File

@ -4,7 +4,7 @@ package com.thealgorithms.others;
* Given a matrix of size n x n We have to rotate this matrix by 90 Degree Here
* is the algorithm for this problem .
*/
import java.util.*;
import java.util.Scanner;
class Rotate_by_90_degree {

View File

@ -1,7 +1,13 @@
package com.thealgorithms.others;
import java.io.*;
import java.util.*;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
/* display the most frequent K words in the file and the times it appear
in the file shown in order (ignore case and periods) */