Complete lab5(4)

This commit is contained in:
2023-03-07 14:34:31 -06:00
parent 2c998b085e
commit b189fdc792
18 changed files with 527 additions and 8 deletions

View File

@@ -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();
}
}

View File

@@ -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);
}
}