我正在设计这个程序,我称之为简单酒店前台系统。 每个客人的数据中应该处理17个值 例如。完整的客人姓名,联系电话等等..... 我首先想到的是用几个阵列实现它们 目的是小心操纵它们(实验) 我怀疑在更安全的操作中重新实现它的其他选择。 你能建议吗?我的专家?关于如何实现它更安全? 也许arraylist,但对我而言,如果主要值(数据库中的主键)将是更新其中的值,则实施起来会更加繁重位置改变 这是第一个版本,纯文件处理 等待你的回复, sukatoa 解决方案 从来没有走过那些愚蠢阵列的路线: 展开 | 选择 | Wrap | 行号 永远不要走那些愚蠢阵列的路线: 展开 | 选择 | Wrap | 行号 好的,我正在去hashmap的路上.....谢谢.... 这个程序'' s最大数据集输入限制为100. 如果我实现了一个使用Collator将其设置为PRIMARY强度来比较所有这些数据的类,这是可以的吗? (黑名单搜索功能用途) 我害怕即时启动agai不好主意......希望不要..... 感谢您的回复Jos, 这真的有助于 距离我只有几个街区的小酒店;它有120个房间,所以我不能把你的软件卖给他们吗?多么愚蠢...... 大多数时候想法都不错,这是非常糟糕的实施。 更好地考虑一下在你开始考虑漂亮的数据结构之前,首先要考虑你的对象模型 。 亲切的问候, Jos This is for my friend. He is a HRM student and was assigned to demo on how to operate a Simple Hotel front-desk system.I''ve searched on the net to help him, but all of those freeware softwares are difficult to handle and manipulate.....My last option is to create a program for him.Easy to deploy and no hustle to maintain version.First version is to implement it through "Pure file handling"Second is to use a database.(Adding to my experience while learning java)Im now starting @ first versionIm now designing this program which i call it Simple Hotel Front-Desk System.There are 17 values that should be handled in every guest''s dataeg. complete guest''s name, contact numbers etc.....What came first on my mind is to implement them with few arraysThe purpose is to manipulate them carefully ( an experiment )I doubt about the other options to reimplement it in a safer handling.Can you advice me experts? about how to implement it more safer?Maybe arraylist, but for me it is more heavy to implement when it comes to updating those values inside of it if the primary value ( primary key in database ) will be changed in positionThis is for the first version, "pure file handling"Im waiting for your replies,sukatoa 解决方案 Never, ever go the route of those silly arrays: Expand|Select|Wrap|Line NumbersNever, ever go the route of those silly arrays: Expand|Select|Wrap|Line NumbersOk, im on my way to hashmap..... Thank you....This program''s max data set input is limited to 100.It is ok if i implement a class that uses Collator setting it into PRIMARY strength to compare all of those datas?(For Black List Search Feature purposes)Im afraid im starting again a bad idea... hope not.....Thanks for your reply Jos,It really helpsThere''s a small hotel just a few blocks away from me; it has 120 rooms so I can''tsell them your software then? How silly ...Most of the time ideas aren''t bad, it''s the implementations that are extremely bad.Better think about the requirements a bit more and think about your object modelfirst before you start thinking about nifty data structures.kind regards,Jos 这篇关于简单的酒店前台系统。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!