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

📄 config.java

📁 利用华为 信息机发送短信 的java 源码
💻 JAVA
字号:
package com.quark.util;
import java.util.Properties;
import java.io.FileInputStream;

public class Config
{
	private String file="Config";
	public Config()
	{
		
	}
	public Config(String file)
	{
		this.file=file;
	}
	public String getValue(String name,String defaultVal)
	{
		Properties pros=new Properties();
		try{
			FileInputStream inputFile=new FileInputStream(this.file);
			pros.load(inputFile);
		}
		catch(Exception e){
			System.out.println(this.file+" not find!");
			e.printStackTrace();
		}
		return pros.getProperty(name, defaultVal);
	}
}

⌨️ 快捷键说明

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