Java

Java IO Tutorial — step-by-step Programming tutorial on Progressive Robot

Java IO Tutorial

URL: https://www.progressiverobot.com/java-io-tutorial/ Java provides several classes in java.io package to work with text, stream data, and file system. I have provided several examples on Java Files and Java IO recently. This post is an index of all Java IO articles. Java IO ![Java IO](images/java-io-tutorial-section-1.png) [How to Create New File in Java](/community/tutorials/java-create-new-file) In this post, you […]

Read more
Mockito Tutorial — step-by-step Programming tutorial on Progressive Robot

Mockito Tutorial

URL: https://www.progressiverobot.com/mockito-tutorial/ Mockito is a java based mocking framework, used in conjunction with other testing frameworks such as [JUnit](/community/tutorials/junit5-tutorial) and [TestNG](/community/tutorials/testng-tutorial). It internally uses [Java Reflection](/community/tutorials/java-reflection-example-tutorial) API and allows to create objects of a service. A mock object returns a dummy data and avoids external dependencies. It simplifies the development of tests by mocking external […]

Read more
Java File separator, separatorChar, pathSeparator, pathSeparatorChar — step-by-step Programming tutorial on Progressive Robot

Java File separator, separatorChar, pathSeparator, pathSeparatorChar

URL: https://www.progressiverobot.com/java-file-separator-separatorchar-pathseparator-pathseparatorchar/ java.io.File class contains four static separator variables. Here we will learn about them and when to use it. File.separator: Platform dependent default name-separator character as String. For windows, it's '\' and for unix it's '/'. File.separatorChar: Same as separator but it's char. File.pathSeparator: Platform dependent variable for path-separator. For example PATH or CLASSPATH […]

Read more
CHAT