자바 디지털 시계 Java Digital Clock
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
해당 자료는 4페이지 까지만 미리보기를 제공합니다.
4페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

자바 디지털 시계 Java Digital Clock에 대한 보고서 자료입니다.

목차

JAVA 디지털 시계

Digital Clock

[Binary] 398KB
 StopWatch.exe
 StopWatch.jar

[Source] 15.5KB
 [com.jinhyuk.Clock]
  [.settings]
  [bin]
  [src]
  .classpath
  .project

본문내용

import java.text.*;
import java.util.Date;

public class Clock {
private int Hours;
private int Minutes;
private int Seconds;
private int MSeconds;
public Clock(){
Hours = 0;
Minutes = 0;
Seconds = 0;
MSeconds = 0;
}

public String displayTime(){
MessageFormat mf = new MessageFormat("{0}:{1}:{2}.");
DecimalFormat df = new DecimalFormat("00");
Object[] objs = {df.format(Hours), df.format(Minutes), df.format(Seconds)};
return mf.format(objs);
}
public String displayTime2(){
MessageFormat mf = new MessageFormat("{0}");
DecimalFormat df = new DecimalFormat("00");
Object[] objs = {df.format(MSeconds)};
return mf.format(objs);
}

public void increaseMSeconds(long mtime, long total){
long end = System.currentTimeMillis();
Date newDate = new Date();
MSeconds = (int) (((end - mtime) + total) / 10);
Hours = Minutes / (3600 * 100);
Minutes = (MSeconds - Hours * 3600 * 100) / (60 * 100);
Seconds = (MSeconds - Hours * 3600 * 100 - Minutes * 60 * 100) / 100;
MSeconds = MSeconds - Hours * 3600 * 100 - Minutes * 60 * 100 - Seconds * 100;
}
public void resetClock(){
Hours = 0;
Minutes = 0;
Seconds = 0;
MSeconds = 0;
}
}

키워드

  • 가격3,000
  • 페이지수14페이지
  • 등록일2012.02.20
  • 저작시기2012.2
  • 파일형식압축파일(zip)
  • 자료번호#728488
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니