📄 utilities.java
字号:
package org.codehaus.groovy.tools;/** * Various utility functions for use in the compiler. */public abstract class Utilities{ /** * Returns a string made up of repetitions of the specified string. */ public static String repeatString( String pattern, int repeats ) { StringBuffer buffer = new StringBuffer( pattern.length() * repeats ); for( int i = 0; i < repeats; i++ ) { buffer.append( pattern ); } return new String( buffer ); } /** * Returns the end-of-line marker. */ public static String eol() { return eol; } private static String eol = System.getProperty( "line.separator", "\n" ); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -