아래와 같은 엑셀 파일에서 회차, 당첨번호만 골라내 출력해보자import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;import jxl.Cell;import jxl.Workbook;import jxl.read.biff.BiffException;import jxl.Sheet;public class LottoEx01 { public static void main(String[] args) { // TODO Auto-generated method stub Workbook workBook = null; try { workBook = workBook.getWorkbook(new FileInp..
전체 글
아래 사이트 접속https://jexcelapi.sourceforge.net/ JExcelApi Java Excel API is a mature, open source java API enabling developers to read, write, and modifiy Excel spreadsheets dynamically. Now java developers can read Excel spreadsheets, modify them with a convenient and simple API, and write the changes to ajexcelapi.sourceforge.netFiles 클릭jexcelapi 클릭2.6.12 클릭 jexcelapi_2_6_12.zip 클릭다운받은 jxcelapi..
아래와 같이 인자값을 받으면 그에 맞는 구구단을 출력하는 파일을 생성하는 프로그램을 짜보자java Gugudan 3단import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;public class Gugudan { public static void main(String[] args) { // TODO Auto-generated method stub FileOutputStream fos = null; try { fos = new FileOutputStream("./" + args[0] + ".txt"); int dan = Integer.parseInt(args[0].r..
import java.util.Calendar;public class CalendarEx04 { public static void main(String[] args) { // TODO Auto-generated method stub // 현재달의 달력 int year = 2024; int month = 5; // 달력 출력 Calendar startCalendar = Calendar.getInstance(); Calendar endCalendar = Calendar.getInstance(); startCalendar.set(year, month-1, 1); endCalendar.set(year, month, 1-1); int startDayOfWeek = startCale..
1. 먼저 아래 페이지에 접속 뒤 Download라고 적힌 주황색 버튼 누르기https://www.eclipse.org/ The Community for Open Collaboration and Innovation | The Eclipse FoundationThe Eclipse Foundation provides our global community of individuals and organisations with a mature, scalable, and business-friendly environment for open source …www.eclipse.org 2. 아래 페이지에서 Download Packages 클릭 3. java를 이용해 웹을 만들것이기 때문에 Eclise IDE for En..
등차수열의 합 공식: 𝑆=𝑛2×(𝑎+𝑙)S=2n×(a+l)여기서,𝑆S는 등차수열의 합을 나타냅니다.𝑛n은 항의 개수를 나타냅니다.𝑎a는 첫 번째 항을 나타냅니다.𝑙l은 마지막 항을 나타냅니다.