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?) |
public class JavaIODemo1 { public static void main(String[] args) { System.out.println("Hello...\n"); System.err.println("Error..."); } }
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(); } } }
Enter the Value = a intValue = 97 a
Refer:
https://docs.oracle.com/javase/8/docs/api/index.html?java/io/package-summary.html
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:
No comments:
Post a Comment