style: enable LocalVariableName in CheckStyle (#5191)

* style: enable LocalVariableName in checkstyle

* Removed minor bug

* Resolved Method Name Bug

* Changed names according to suggestions
This commit is contained in:
S. Utkarsh
2024-05-28 23:59:28 +05:30
committed by GitHub
parent 81cb09b1f8
commit 25d711c5d8
45 changed files with 418 additions and 417 deletions

View File

@ -11,20 +11,20 @@ public class NodeStack<Item> {
* Entry point for the program.
*/
public static void main(String[] args) {
NodeStack<Integer> Stack = new NodeStack<Integer>();
NodeStack<Integer> stack = new NodeStack<Integer>();
Stack.push(3);
Stack.push(4);
Stack.push(5);
stack.push(3);
stack.push(4);
stack.push(5);
System.out.println("Testing :");
Stack.print(); // prints : 5 4 3
stack.print(); // prints : 5 4 3
Integer x = Stack.pop(); // x = 5
Stack.push(1);
Stack.push(8);
Integer y = Stack.peek(); // y = 8
Integer x = stack.pop(); // x = 5
stack.push(1);
stack.push(8);
Integer y = stack.peek(); // y = 8
System.out.println("Testing :");
Stack.print(); // prints : 8 1 4 3
stack.print(); // prints : 8 1 4 3
System.out.println("Testing :");
System.out.println("x : " + x);