Category: IT/개발

[Android] Cannot set the value of read-only property ‘outputFile’ for ApkVariantOutputImpl_Decorated

안드로이드 Gradle 플러그인이 3.0.0 으로 업데이트되면서 마이그레이션 이슈가 생겼다. https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#variant_api gradle 빌드파일을 열어 아래와 같이 변경해준다. Use all() instead of each() Use outputFileName instead of output.outputFile if you change only file name (that is your case) 종속성...

[GUAVA] Predicate 사용예

<!– https://mvnrepository.com/artifact/com.google.guava/guava –> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>24.0-jre</version> </dependency> List<OnlineMenuVO> selectMenu2List = this.uiMainService.selectMenu2List(this.custCoCd); Predicate<OnlineMenuVO> lvl1ListPredicate = new Predicate<OnlineMenuVO>() { @Override public boolean apply(@Nullable OnlineMenuVO onlineMenuVO) { if(onlineMenuVO.getClsLvl() == 1){ return true;...

[자료구조] JAVA로 ArrayList 구현해보기

public class mainClass { public static void main(String[] args){ ArrayList arrayList = new ArrayList(); arrayList.add(“10”); arrayList.add(“20”); arrayList.add(“30”); System.out.println(arrayList.getSize()); System.out.println(arrayList.toString()); //arrayList.indexOf(2); arrayList.addIndex(1, “15”); System.out.println(arrayList.toString()); arrayList.remove(2); System.out.println(arrayList.toString()); } }   public class...