Q. 안드로이드 스튜디오 게시판 기능 구현 코드TextView ant; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tv=findViewById(R.id.ant); } public void clickBtn(View view) { try { InputStream is= assetManager.open("jsons/an3172.json"); InputStreamReader isr= new InputStreamReader(is); BufferedReader reader= new BufferedReader(isr); StringBuffer buffer= new StringBuffer(); String line= reader.readLine(); while (line!=null){ buffer.append(line+"\n"); line=reader.readLine(); } String jsonData= buffer.toString(); JSONArray jsonArray= new JSONArray(jsonData); String s="";String name= jo.getString("name"); String msg= jo.getString("msg"); JSONObject flag=jo.getJSONObject("flag"); int a= flag.getInt("a"); int b= flag.getInt("b"); s += name+" : "+msg+"==>"+a+","+b+"\n"; } tv.setText(s); } catch (IOException e) {e.printStackTrace();} catch (JSONException e) {e.printStackTrace(); } 이게 자바 클래스에서 구현한 json의 예시본인데 만약 s += name+" : "+msg+"==>"+a+","+b+"\n";이것을 어떻게 해야지 2줄의 배열로 나타낼수있을까요?[{"name": "sam","msg": "Hello world", "flag": {a": 10, "b": 20}},{"name": "robin","msg": "Nice to meet you", "flag": {"a": 100,"b": 200}}]Json코드입니다. 저렇게 되어있는 부분을 두줄로 불러드릴려면 s += name+" : "+msg+"==>"+a+","+b+"\n"; 이코드를 어떤식으로 변형을해야지 json을 불러들었을때 한줄이아닌 두줄로 나타낼수있을까요?예제의 출처:https://lcw126.tistory.com/m/101