Mahendra Data, S.Kom: Lecturer
Mahendra Data, S.Kom: Lecturer
Hi, I am JAVA
Java technology is both a programming language and a platform. Java programming language is a high-level language Java program can run in many platform.
How???
All source code is written in plain text files ending with the .java extension That source code then compiled into .class files
A .class file does not contain code that is native to your processor. It contains bytecodes (the machine language of the Java Virtual Machine) instead Java launcher tool runs your application with an instance of the Java VM
Create a Java program that count the characters from the standart input.
BufferedReader inputReader = new BufferedReader (new InputStreamReader (System.in)); System.out.print("Input a text : "); String inputText = inputReader.readLine(); System.out.println("Your text : " + inputText);
... } }
Example
You can download those example and code snippet at http://dataq.lecture.ub.ac.id/files/2011/09/C harCounter.zip
Bibliography
http://download.oracle.com/javase/tutorial/