Complete lab5(4)
This commit is contained in:
@@ -8,9 +8,18 @@ package com.calebfontenot.test;
|
||||
*
|
||||
* @author caleb
|
||||
*/
|
||||
import java.math.*;
|
||||
public class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello World!");
|
||||
double d = 47;
|
||||
String string = d + "";
|
||||
BigDecimal bigInt = new BigDecimal(36);
|
||||
System.out.println(bigInt);
|
||||
|
||||
char[] charArray = {'a', 'b', 'c', 'd'};
|
||||
System.out.println(new String(charArray));
|
||||
|
||||
Thread.sleep();
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
package com.calebfontenot.test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author caleb
|
||||
*/
|
||||
public class Test3 {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(Math.PI);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user