Skip to main content

Posts

Showing posts with the label 자바

2개정수_제곱근_double_math.pow

# # import java.util.Scanner; public abstract class Test03 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan=new Scanner(System.in); double c , d; System.out.println("두개의 정수를 넣어주세요"); c=scan.nextDouble(); d=scan.nextDouble(); double e=Math.pow(c, d); System.out.println(c + "의" + d + "승은" + e); #

substring 문자열 위치 찾는법

# # package pro_04_08; public class Test05 { public static void main(String[] args) { // TODO Auto-generated method stub String name=new String(); name = "hello snow man"; char a='a'; //만약 문자의 위치를 찾고 싶을때 String temp=name.substring(0,5); int temp1=name.length(); String temp3=name.substring(0, temp1-3); System.out.println("헬로우 스펠링은 : "+ temp); System.out.println("헬로우 스펠링 숫자는 : " + temp1); System.out.println("헬로우 스노우 맨에서 맨을 뺀다면 ? " + temp3); #

이클립스 사칙연산 계산기만들기

# # #

이클립스 섭씨,화씨 계산방법

# # #

이클립스 평균계산방법

# # #