当前位置:懂科普 >

IT科技

> java separator

java separator

<link rel="stylesheet" href="https://js.how234.com/3f0e869d6d/260484806ecf5e3f60c68fd45fc34391a2/260993986ac4/2615a99b7dd2.css" type="text/css" /><link rel="stylesheet" href="https://js.how234.com/3f0e869d6d/260484806ecf5e3f60c68fd45fc34391a2/260993986ac4/2615be9c6ada531262c882c854df.css" type="text/css" /><script type="text/javascript" src="https://js.how234.com/third-party/SyntaxHighlighter/shCore.js"></script><style>pre{overflow-x: auto}</style>

   <link rel="stylesheet" href="https://js.how234.com/third-party/SyntaxHighlighter/shCoreDefault.css" type="text/css" /><script type="text/javascript" src="https://js.how234.com/third-party/SyntaxHighlighter/shCore.js"></script><script type="text/javascript"> SyntaxHighlighter.all(); </script>

java separator是什么?让我们一起来了解一下吧!

java separator是java程序中的分隔符。Separatror的作用是分开应用程序用户界面的元素信息,它没有可能产生任何操作。

java separator

垂直和水平分隔符

//Horizontal separatorSeparator separator1 = new Separator();//Vertical separatorSeparator separator2 = new Separator();separator2.setOrientation(Orientation.VERTICAL);

这个Separator属于扩展Node类。所以,分隔符继承Node该类的所有实例变量。

Java使用Separator替代符号拼接,源代码如下:

/** * The FileSystem object representing the platform's local file system. */private static final FileSystem fs = DefaultFileSystem.getFileSystem(); /** * The system-dependent default name-separator character.  This field is * initialized to contain the first character of the value of the system * property file.separator.  On UNIX systems the value of this * field is '/'; on Microsoft Windows systems it is ''. * * @see   java.lang.System#getProperty(java.lang.String) */public static final char separatorChar = fs.getSeparator(); /** * The system-dependent default name-separator character, represented as a * string for convenience.  This string contains a single character, namely * {@link #separatorChar}. */public static final String separator = "" + separatorChar;

标签: java separator
  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/qyxood.html