搜索资源列表
解决生产者-消费者问题
- public class Server extends Thread { Client client int counter public Server(Client _client) { this.client = _client this.counter = 0 } public void run() { while (counter < 10) { this.client.queue.addElement(new Integer(counter)) counter++ } throw
asdddfdf
- 这里以开始定义的PASCAL语言子集的源程序作为词法分析程序的输入数据。在词法分析中,自文件头开始扫描源程序字符,一旦发现符合"单词"定义的源程序字符串时,将它翻译成固定长度的单词内部表示,并查填适当示)被翻译成具有等长信息的单词串(源程序的内部表示),并产生两个表格:常数表和标识符表,它们分别包含了源程序中的所有常数和所有标识符。-here to start the definition of PASCAL language subset of the source as lexical an
compStr
- 字符串对比程序,使用可变换颜色的CStatic控件和CEdit控件。-String compare software, using colorful CStatc control and CEdit ontrol.
Demo6
- 编写一个方法,输出在一个字符串中,指定字符串出现的次数.方法原型为: public static int countStr(String str1,string str2) -package defalt public class Hellow { public static void main(String args[]) {String str1="Hello,it is Tom speaking,who is that?" String str2="is"
