ArrayList time
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* 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.testproject;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author caleb
|
||||
*/
|
||||
public class Emoji {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
char emoji = '😁';
|
||||
System.out.println(emoji);
|
||||
}
|
||||
}
|
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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.testproject;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author caleb
|
||||
*/
|
||||
public class ParseInt {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
java.math.BigDecimal bigInt = new java.math.BigDecimal(343.445);
|
||||
System.out.println(bigInt);
|
||||
String string = new String("lol");
|
||||
String string2 = "lol2";
|
||||
System.out.println(string.getClass().getName());
|
||||
System.out.println(string2.getClass().getName());
|
||||
}
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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.testproject;
|
||||
|
||||
import java.util.*;
|
||||
/**
|
||||
*
|
||||
* @author caleb
|
||||
*/
|
||||
public class StringBuilderTest2 {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
StringBuilder strBuf = new StringBuilder();
|
||||
strBuf.append("ABCDEFG");
|
||||
System.out.println(strBuf);
|
||||
strBuf.insert(3, "RRRR");
|
||||
System.out.println(strBuf);
|
||||
|
||||
|
||||
String s1 = "Welcome to Java";
|
||||
String s2 = "Welcome to Java";
|
||||
System.out.println("s1 == s2 is " + (s1 == s2));
|
||||
|
||||
Circle[] circleArray = new Circle[5];
|
||||
circleArray[0] = "test";
|
||||
for (Circle object: circleArray) {
|
||||
System.out.println(object);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class Circle {
|
||||
Circle() {
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user