java - Finding if there's a similar decimal digit in two ints -
I currently take a Java class in my High School, and I should get a code to help figure it out. That is equal to number in two ints.
For example, ints 49 and 93, both ints (which is 9) have a similar number. I have to write a code to see if there is a mutual point. / P>
Update: You were asking what I have tried to do, on which I have already commented below, here it is.
// declare int a = 12; Int b = 23; Char a1 = a.charAt (0); // A clear coding error
UPDATE: This is what I have tried, thanks to Mohammed Adil's suggestions.
int a = 12; Int b = 23; String first INT = ""; String secondin = ""; FirstInt = integer.tastin (A); SecondInt = integer.trusting (b); Int firstCharA = firstInt.charAt (0); Int secondCharA = First Inc. Chat (1); Int firstCharB = secondInt.charAt (0); Int secondCharB = Second Ink. Chat (1);
Update: These are comparisons.
if (firstly == firsthandharatakarta) first time == second charch || bcc secondhand == first warning = second = = second flute) {output = true; } Else {output = false; } System.out.println (Output);
In a simple way:
int a 12 et b occurs in which 23 boards are false for each character, it verifies that if there is currently B, then there is a true break in it, otherwise it is known in the next six. In four prints,
Comments
Post a Comment