Friday, 8 July 2016

Java Tutorial : Java IO (what is java IO?)


Click here to watch in Youtube :
https://www.youtube.com/watch?v=a-C5m0ssBG4&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java Tutorial : Java IO (what is java IO?) 
Java Tutorial : Java IO (what is java IO?) 
JavaIODemo1.java
public class JavaIODemo1
{

    public static void main(String[] args)
    {
        System.out.println("Hello...\n");
        System.err.println("Error...");
    }

}
Output
Hello...
Error...
JavaIODemo2.java
import java.io.IOException;

public class JavaIODemo2
{

    public static void main(String[] args)
    {
        try
        {
            System.out.print("Enter the Value = ");
            // returns ASCII code of 1st character
            int intValue = System.in.read();
            System.out.println("intValue = " + intValue);
            System.out.println((char) intValue);
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
    }

}
Output
Enter the Value = a
intValue = 97
a

Refer:
https://docs.oracle.com/javase/8/docs/api/index.html?java/io/package-summary.html
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/JavaIODemo_What_is_JAVAIO_App.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/JavaIODemo_What_is_JAVAIO_App

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/c86caed53b2e0eff953c1af01d4571204b2be828/BasicJava/JavaIODemo_What_is_JAVAIO_App/?at=master

See also:

  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment