本文整理了Java中io.advantageous.boon.core.IO.println()
方法的一些代码示例,展示了IO.println()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IO.println()
方法的具体详情如下:
包路径:io.advantageous.boon.core.IO
类名称:IO
方法名:println
[英]Adds a newline to the console.
[中]向控制台添加新行。
代码示例来源:origin: io.advantageous.boon/boon-reflekt
/**
* Prints an object to the console.
*
* @param message object to print.
*/
public static void println(Object message) {
print(message);
println();
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
/**
* Like print, but prints out a whole slew of objects on the same line.
*
* @param messages objects you want to print on the same line.
*/
public static void puts(Object... messages) {
println(Str.sputs(messages));
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
/**
* Prints an object to the console.
*
* @param message object to print.
*/
public static void println(Object message) {
print(message);
println();
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
/**
* Like print, but prints out a whole slew of objects on the same line.
*
* @param messages objects you want to print on the same line.
*/
public static void puts(Object... messages) {
println(Str.sputs(messages));
}
代码示例来源:origin: io.advantageous.boon/boon-util
/**
* Like print, but prints out a whole slew of objects on the same line.
*
* @param messages objects you want to print on the same line.
*/
public static void puts(Object... messages) {
for (Object message : messages) {
IO.print(message);
if (!(message instanceof Terminal.Escape)) IO.print(' ');
}
IO.println();
}
代码示例来源:origin: com.github.advantageous/boon-reflekt
/**
* <p>
* Like puts but prints out each object on its own line.
* If the object is a list or array,
* then each item in the list gets printed out on its own line.
* </p>
*
* @param messages the stuff you want to print out.
*/
public static void putl(Object... messages) {
for (Object message : messages) {
if (message instanceof Collection || Typ.isArray(message)) {
Iterator iterator = Conversions.iterator(message);
while (iterator.hasNext()) {
puts(iterator.next());
}
continue;
}
print(message);
println();
}
println();
}
代码示例来源:origin: io.advantageous.boon/boon-reflekt
/**
* <p>
* Like puts but prints out each object on its own line.
* If the object is a list or array,
* then each item in the list gets printed out on its own line.
* </p>
*
* @param messages the stuff you want to print out.
*/
public static void putl(Object... messages) {
for (Object message : messages) {
if (message instanceof Collection || Typ.isArray(message)) {
Iterator iterator = Conversions.iterator(message);
while (iterator.hasNext()) {
puts(iterator.next());
}
continue;
}
print(message);
println();
}
println();
}
内容来源于网络,如有侵权,请联系作者删除!