전체 글37 개요 보호되어 있는 글 입니다. 2023. 12. 30. 정적 컨텐츠, MVC/템플릿 엔진 보호되어 있는 글 입니다. 2023. 12. 28. View 환경설정 보호되어 있는 글 입니다. 2023. 12. 28. Spring 프로젝트 생성 보호되어 있는 글 입니다. 2023. 12. 28. JAVA split, Formatting 보호되어 있는 글 입니다. 2023. 7. 22. JAVA Scanner 보호되어 있는 글 입니다. 2023. 7. 21. JAVA 연습문제 (객체 클래스 메서드, split) /* 완전판 물건찍기 */ package hakwon2; import java.util.Scanner; import java.util.ArrayList; // Data 클래스 class Data { // product를 입력하면 '-' 단위로 split 하여 eachinfo 배열에 저장하는 메서드 Name Product String NameProduct(String product) { String[] eachinfo = product.split("-"); String number = eachinfo[0]; String name = eachinfo[1]; String price = eachinfo[2]; String howmany = eachinfo[3]; // 순서대로 split 한 eachinfo의 정.. 2023. 7. 21. JAVA '==' vs 'equals' 보호되어 있는 글 입니다. 2023. 7. 21. JAVA 객체 (6) - a++ 연습문제 package hakwon3; class Plus{ int a; int Plusone(int a) { a++; return a; // 꼭 return a를 해줘야 a++된 값이 출력된다! } } public class Practice { public static void main(String[] args) { Plus firstsample = new Plus(); int firstresult = firstsample.Plusone(31); Plus secondsample = new Plus(); int secondresult = secondsample.Plusone(88); System.out.println(firstresult); System.out.println(secondresult); } } 32.. 2023. 7. 21. 이전 1 2 3 4 5 다음