上机练习
package slk; public class sjlx { public static void main(String[] args) { // TODO Auto-generated method stub int a = 1,b = 2; int c = a; a = b; b = c; System.out.println(a+" "+b); } }
package slk;
public class sjlx {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 856;
int b;
int c;
int d;
b=(a%10);
c=(a/10%10);
d=(a/100);
System.out.println("b="+b);
System.out.println("c="+c);
System.out.println("d="+d);
System.out.println(b+c+d);
}
}
package slk; public class sjlx { public static void main(String[] args) { // TODO Auto-generated method stub int H=68; int C=25; int D; int G; D=(H-32)*5/9; H=D; G=C*9/5+32; C=G; System.out.println(D); System.out.println(G); } }
package slk; public class sjlx { public static void main(String[] args) { // TODO Auto-generated method stub String SS="ABCDE"; String AA="abcde"; System.out.println(SS.toLowerCase()); System.out.println(SS.toUpperCase()); } }