아래 코드로 한 행을 스플라인 처리하는 동안 결과가 가비지가되는 동안 selectedproduct.get(j).getText()
값을 인쇄하는 동안 아래 문자열이 표시됩니다. 배열이 default implementation을 사용하기 때문에 자바에서 두 줄을 나누는 방법은 무엇입니까? 내가/n으로 분할하려고 할 때 문자열이 가비지 값으로 인쇄됩니다. (
Civil War A Nation Divided
Playstation2 Software
난 그냥 상단을 요구했다.
System.out.println(selectedproduct.get(j).getText().split("\\n"));
'사용하려고 \ 연구 \ n' 대신 – nullpointer