





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































Today Strings Languages Deterministic Finite Automata For next time: Read up to 1. Check out ABCEZ in lecture 2-4 directory. HW 1
Soda vend(){
int total = 0, coin; while (total != 45){ receive(coin); if ((coin==10 && total==40) ||(coin==25 && total>=25)) reject(coin); else total += coin; } return new Soda();
}
About to put in a dime
About to put in a quarter
About to put in a dime
string resulting from putting them together
EG: ire land = ireland, QQ DD = QQDD,
Q1: Why the last claim?
Q2: What’s the Java equivalent of concatenation?