⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 let.java

📁 a Java program that reads a file containing instructions written in self-defined file (TPL in this c
💻 JAVA
字号:
import java.util.*;

class let
{	
	static Vector str=new Vector();
	
	static Vector number=new Vector();
	public static void main(String args[])
	{
		String line;
		line="myint=5";
		StringTokenizer st=new StringTokenizer(line);
		while(st.hasMoreTokens())
		{
			if((st.nextToken("=")).equalsIgnoreCase("mystring")==true)
			{	
				String n=st.nextToken("=");
				//String m=st.nextToken("=");
				
				str.addElement(st.nextToken(n));
				System.out.println(n+"888");
				//str2.addElement(st.nextToken("="));
			}
			else 
			{	
				String m=st.nextToken("=");
				Integer I=Integer.valueOf(m);
				
				int x=I.intValue();
				//int y=x*4;
				number.addElement("myInt");
				number.addElement(I);
				//System.out.println(y);
			}
			
			//System.out.println(st.nextToken("="));
		}
		
	}
}
		

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -