230111_Stream
package day28_TotalStream; import java.text.DecimalFormat; public class DTO { DecimalFormat df = new DecimalFormat("#,##0.0"); int ban,number; String name; int kor,eng,mat; int tot; double avg; String hak; public DTO() {} public DTO(int ban, int number, String name, int kor, int eng, int mat, int tot, double avg, String hak) { super(); this.ban = ban; this.number = number; this.name = name; this..
2023. 1. 11.
230106_Map
package day25; import java.text.ChoiceFormat; public class ArrayTest { public static void main(String[] args) { String [] name = {"한라산","백두산","금강산","설악산","내장산","명지산","광교산"}; int [] jum = {80,66,92,71,85,59,100}; String [] hak = {"F","D","C","B","A"}; double [] avg = {0,60,70,80,90}; // 반드시 오름차순 정열 // 학점구하기 ChoiceFormat cf = new ChoiceFormat(avg,hak); // 출력하기 for(int i=0;iSystem.out.println(s.toS..
2023. 1. 6.