Package algs14
Class XPerformanceOfStrings
java.lang.Object
algs14.XPerformanceOfStrings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
makeStringUsingBuffer
(int N) create a string consisting of N asterisksstatic String
makeStringUsingConcat
(int N) create a string consisting of N asterisksstatic double
timeTrial
(int N)
-
Constructor Details
-
XPerformanceOfStrings
public XPerformanceOfStrings()
-
-
Method Details
-
makeStringUsingConcat
create a string consisting of N asterisks -
makeStringUsingBuffer
create a string consisting of N asterisks -
main
-
timeTrial
-