We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Data Structures
- Java Stack
- Discussions
Java Stack
Java Stack
Sort by
recency
|
631 Discussions
|
Please Login in order to post a comment
import java.io.; import java.util.;
public class Solution { // {}() [] public static boolean bracketBalanced(String str){ Stack stack=new Stack<>(); for(int i=0;i
}
import java.util.Scanner; import java.util.Stack;
public class JavaStackParanthesis { public static void main(String[] argh) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { String input = sc.next(); System.out.println(validate(input)); } sc.close(); }
}
My solution:
import java.util.*; class Solution{
}
java 8
import java.util.Scanner;
class Solution {
}
java 8