mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 06:23:08 +08:00
style: enable HideUtilityClassConstructor
in checkstyle (#5147)
This commit is contained in:
@ -8,7 +8,9 @@ import java.util.Stack;
|
||||
*
|
||||
* @author Ishika Agarwal, 2021
|
||||
*/
|
||||
public class ReverseStack {
|
||||
public final class ReverseStack {
|
||||
private ReverseStack() {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
try (Scanner sc = new Scanner(System.in)) {
|
||||
|
@ -6,7 +6,9 @@ import java.util.NoSuchElementException;
|
||||
* @author Varun Upadhyay (https://github.com/varunu28)
|
||||
*/
|
||||
// An implementation of a Stack using a Linked List
|
||||
class StackOfLinkedList {
|
||||
final class StackOfLinkedList {
|
||||
private StackOfLinkedList() {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
LinkedListStack stack = new LinkedListStack();
|
||||
|
Reference in New Issue
Block a user