Java's initiator compares the problem of love error

zhaozj2021-02-16  116

In fact, I started to have an error in the operation. I specifically summed him out today. You can don't watch the answer. I think what kind of results should you get, then look at the answer, I know that I am wrong there. I hope to help everyone's learning!

Public class test {? public void Go ()? {?? int i = 2, j = 10; ?? Byte x = 2, y = 10; ?? system.out.println (( i) * (j -)); // 1 ?? system.out.println ("i =" i "j =" j); // 2 ?? system.out.println (9/2); // 3? ? System.out.println (5/10); // 4 ?? system.out.println (5 / 10.0); // 5 ?? system.out.println (x y); // 6 ?? SYSTEM .out.println ("Hello" 2 3); // 7 ?? system.out.println (2 3 "Hello"); // 8 ?? System.out.println ("Hello" == "Hello"); // 9 ?? System.out.println (New String ("Hello") == New String ("Hello")); // 10 ?? System.out.println ("Hello" "). Equals (" Hello ")))); //? 11 ?? Class intertest ?? {??? string s =" hello "; ???} ?? intertest it1 = new intertest (); ?? intertest it2 = new intertest (); ?? it1.s = "hello"; ?? it1.s = it2.s; ?? system.out.println (it1.equals (it2)); // 12? }? public static void main (string args [])? {?? test t = new test (); ?? t.go ();?}}

answer:

转载请注明原文地址:https://www.9cbs.com/read-7746.html

New Post(0)