the last question: is the code correct for determining the sequence of letters?
Type: Posts; User: makonikor
the last question: is the code correct for determining the sequence of letters?
do you know a link that can teach me how to do it?
ok it compiles when I use Scanner scan=new Scanner("{{([])}}\n"); but how am I supposed to make it work when it is Scanner scan=new Scanner(new FileReader(file));
I have no idead what you are talking about.
no the name of the file must be "Test. java", but it does not accept it , it does not accept any input
I want scanner to read the file. actually the stack is determining if the input is valid or not and push or pop that data to the stack. example:
{{([])}} is a legal sequence but ()[]/* is not.
Enter file name:
8
Exception in thread "main" java.io.FileNotFoundException: 8 (Sistem belirtilen dosyayı bulamıyor)
at java.io.FileInputStream.open(Native Method)
at...
hey guys, I wrote a code for my java class project. it is about stacks. you can see my code below. I don know why but it gives
runtime error. please help me out.
import java.util.*;
import...