Java面试题,java实现,共同探讨一下<HOT>

来源:百度知道 编辑:UC知道 时间:2024/06/20 20:37:40
==========================
Test 1 : Ini File Parser
==========================
- Write a program that can parse a Windows .ini format file and store the contents in memory (in some datatype/class of your choice)
- Also provide some convenience api that allows a developer to retrieve information from the parsed representation
e.g. getIniKeys()
getIniVals()
getIniVal(String aKey, aGroupName)
getGroup(String aGroupName
- Provide an interactive way to query different attributes, e.g, myname, main.theIP, Complex_Context.myname

Sample Ini File
===============
myname = props

[main]
theIP = 192.184.12.1
DNS = 34.2.4.5
DNS = 15.19.27.84

# defines a group
[myhome]
IP = 192.184.12.2
IP = 192.168.12.50

[complex context]
MyName = hallo

Some Rules To keep in Mind
==========================
a. Ini File consists of a set of attrib

你最好去把英文翻译出来先,要不然很多人都看不懂!不是程序员的英语都那么牛x的!呵呵

o分也hot?
哎 太长了,没空帮你看

说了半天就是写一个读ini文件的共同呗。。。

本人现在还没学到这个程度
才学java4个月左右呢!