Separatley representing arraylist indexes as Strings

感情迁移 提交于 2020-01-16 18:41:49

问题


So far I have an ArrayList that has the following contents

[[2/11, 11/48], [8/35, 35/288], [16/43, 43/288], [75/152, 19/210], [4/5, 5/16], [135/163, 163/1680]]

However I need to represent each individual part of this as a String representation such as the following,

{true@2/11, false@9/11}@11/48

Where the false @ is the complement of true@, not so sure how to go about getting them seperatly out of the list, for example I tried

knowledegeD.get(0)

for the first bit but obviously that just returns

{{true@[2/11, 11/48]

Any idea on how I would go about this?

来源:https://stackoverflow.com/questions/15699445/separatley-representing-arraylist-indexes-as-strings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!