A simple Java applet

Source: Internet
Author: User

The decimal number is converted to a binary number program  public class c1{public static void Main (String args[]) {System.out.println (Integer.tobinar    Ystring (6)); }}   public class C1{        public static void Main (String Args[]) {                int x= 4270;                x=x/1000+ 1000;//Note:x/1000                 SYSTEM.OUT.PRINTLN (x);                  system.out.println ( -2%5); Here is just how much is left of the% number, here the value of output is -2        }}   public Class c1{             public static void Main (String args[]) {                     byte a=3;                   //a=a+3; there will be an error, because A is 1 bytes and 3 is 4 bytes             }}
public class c1{public static void Main (String args[]) {System.out.println ("Hahahahah" + "Hahah");//Branch write can run, output Hahahahahhahah}}

public class c1{public static void Main (String args[]) {System.out.println ("5+5=" +5+5);//error operation result System.out.print ln ("5+5=" + (5+5));//Correct}}
public class c1{
public static void Main (String args[]) {
System.out.println ("Hello\nworld");           System.out.println ("\" hello\ "");//char c= ' you '; This is possible, because C is two bytes and kanji is two bytes
}
}//in the Widows system The carriage return is represented by two characters, \ r and \ n
\b Represents backspace run result HelloWorld//arithmetic operation
public class c1{
public static void Main (String args[]) {
Short s=4;
s=s+5; If it's not annotated, it's going to go wrong.
s+=5; This will do the automatic conversion.
}
}//Assignment operation public class c1{
public static void Main (String args[]) {
int a,b,c;
a=b=c=5;
System.out.println (A + "," +b+ "," +c ");
}
The result of the comparison operator operation is either True or if: if (a!=4)

A simple Java applet

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.