阅读背景:

如果使用远程数据,则比其他解决方案更好

来源:互联网 

I have a simple java method that returns colors based on the HSB value converted from an RGB. It works (needs some tweaking), but I use a series of else if and nested if statements to return the data I want. I had heard that HashMaps and String Factories were better, but I couldn't see how these worked with ranged data. Is there a better solution that works with ranged data like this?I have a simple java method that returns colors




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: