Java is a programming language that is most preferred by many people today. High level of compatibility, and many new features that are not owned by any other programming language to make Java more skyrocketed. Also easy and simplenya syntax of the java programming language also makes this one much in demand. Advantages of Java the other is, the presence of J2ME (Java 2 Platform Micro Edition), J2SE (Java 2 Platform Standard Edition) and J2EE (Java 2 Platform Entreprise Edition). Where J2ME is a version of the Java platform that is used for small platforms, such as Mobile Phone, PDA, etc.. While J2EE is a java version that is used for major platforms, or for large scale applications. Now we will study today is J2SE, which version of java that is used for personal computers and notebooks
To start creating applications using Java we have to download a compiler for java first, namely JDK. Actually, simply by having the compiler java, we can begin to create applications using java, but if we have trouble when you compile or debug our programs then I suggest to install an IDE for java and gentlemen, namely NetBeans, Eclipse or JCreator. Maybe I was a little recommends using Netbeans as editor, because its features our complete and easy when creating the program.
After installing the JDK and Netbeans let us begin to create programs by using Java, for a start look at the example below which is a program "Hello Word" using Java;
public class Welcome {public static void main (String args []) {System.out.println ("Hello Words!");}}
So after we compile the above program, output will be Hello Words! . System.out.println ("Hello Words!"); This is the method used for displaying text in java with the character after printing the text that we want it immediately changed its line. For a similar method but this will not change the line after the text is finished menampilakan System.out.print (); note the example below the user;
public class Welcome {public static void main (String args []) {System.out.println ("Hello"); System.out.println ("Words!");}}
Then we compile the above program after his also will produce the same output is Hello Words! Next we will learn about the escape character, the character of certain characters that are used in a programming language to modify the text printing. To be more clear consider the following programs:
public class Welcome {public static void main (String args []) {System.out.println ("Hello \ nWords!");}} The output of above program is Hello Words! Use the escape character \ n function to replace the line of the text printing process....
To start creating applications using Java we have to download a compiler for java first, namely JDK. Actually, simply by having the compiler java, we can begin to create applications using java, but if we have trouble when you compile or debug our programs then I suggest to install an IDE for java and gentlemen, namely NetBeans, Eclipse or JCreator. Maybe I was a little recommends using Netbeans as editor, because its features our complete and easy when creating the program.
After installing the JDK and Netbeans let us begin to create programs by using Java, for a start look at the example below which is a program "Hello Word" using Java;
public class Welcome {public static void main (String args []) {System.out.println ("Hello Words!");}}
So after we compile the above program, output will be Hello Words! . System.out.println ("Hello Words!"); This is the method used for displaying text in java with the character after printing the text that we want it immediately changed its line. For a similar method but this will not change the line after the text is finished menampilakan System.out.print (); note the example below the user;
public class Welcome {public static void main (String args []) {System.out.println ("Hello"); System.out.println ("Words!");}}
Then we compile the above program after his also will produce the same output is Hello Words! Next we will learn about the escape character, the character of certain characters that are used in a programming language to modify the text printing. To be more clear consider the following programs:
public class Welcome {public static void main (String args []) {System.out.println ("Hello \ nWords!");}} The output of above program is Hello Words! Use the escape character \ n function to replace the line of the text printing process....
Tidak ada komentar:
Posting Komentar
silahkan beri kritik dan saran untuk bloger ini...thank..^_^