RUVIDEO
Поделитесь видео 🙏

✔ Java Programming Output - Intro To Input/Output | (Video 123)

Java Programming Output - Intro To Input/Output

► Free Selenium PDF Book: https://www.rexjones2.com/book-selenium-4-beginners/
► Free Java PDF Book: https://www.rexjones2.com/book-part-1-core-java/
► All Paperback & eBooks: http://tinyurl.com/Rex-Allen-Jones-Books

Social Media Contact
✔ YouTube https://www.youtube.com/c/RexJonesII/videos
✔ Twitter https://twitter.com/RexJonesII
✔ LinkedIn https://www.linkedin.com/in/rexjones34/
✔ GitHub https://github.com/RexJonesII/Free-Videos
✔ Facebook http://facebook.com/JonesRexII

► Download Code, Presentation, & Transcript via Website = https://www.rexjones2.com/java-input-output/
► Download Code, Presentation, & Transcript via GitHub = https://github.com/RexJonesII/Free-Videos/tree/master/Video_123%20Java%20IO%20Intro-Output

Transcript
Java Introduction
Java programs perform I/O through streams. I/O stands for Input Output. You know how we print to the console using System.out.println. That’s part of Java’s I/O system to produce information. We can also use the I/O system to consume information.

There are 3 streams defined in the java.io package to read data or write data. The streams are Byte, Character, and Predefined.
1. Byte is defined by 2 class hierarchies: InputStream and OutputStream
2. Character is also defined by 2 class hierarchies but those classes are Reader and Writer. Reader is used for input and Writer is used for output.

This is a list of the Byte Streams and Character Streams. The original Java version only included the Byte Stream. However, the Character Stream was created to parallel the corresponding Byte stream. This list came from Oracle’s site.

3. Number 3 is the Predefined Stream containing the System class with 3 fields: in, out, and err. System.in refers to the standard input which defaults to the keyboard. System.out refers to the standard output which defaults to the console. System.err refers to the standard error which also defaults to the console just like System.in.

We are going to focus on the Character Streams that was designed to handle input and output of characters.

Java Output
This session will cover Java’s Output. For starters, let’s print the current path directory. String pathDirectory = System.getProperty(“user.dir”).
sysout(pathDirectory + “\n”) and Run. We see the directory in the Console. System.out is an object of type PrintStream which contains print() and println() that contain aspects of the run-time environment.

Now, it’s time to // Write To A File. PrintWriter is a class that allows us to print on the file, object write = new PrintWriter().We see some constructors. File is the one we need. Which file are we printing to file? “Write File Test.txt”. This will be the filename. Add a throws declaration of IOException.

System.out is very similar to PrintWriter. Look what happens when I type write.pri. Do you see the print statements? Select println(“”). The difference is System.out prints to the console and PrinterWriter prints to a file. First line is “Joe Doe”. Second Line (“Software Engineer”), and last will be (“10 Years Experience”).We must always close at the end write.close().

Close releases the file for other system resources in the Operating System. Open Package Explorer and Run. We see Write File Test in the Package Explorer. Open the file and the information is correct. The purpose of this video was to give you an example of how to handle output characters in Java. Next, I will show you how to handle input characters.

#SeleniumTraining #SeleniumAutomation #BeginnerSeleniumTutorials #SeleniumWebDriver

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «✔ Java Programming Output - Intro To Input/Output | (Video 123)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.