The answer to this question is c
Answer:
Following is the code for filter:
public class filter
{ public static void main(String[] args)
{ int x = StdIn.readInt();
System.out.print(" " + x + " ");
while(!StdIn.isEmpty())
{ int y = StdIn.readInt();
if(y != x)
System.out.print(" " + y + " ");
x = y;
}
}
}
Explanation:
- A public class filter is used.
- The main function will accept a single argument as string[], it is also known as java command line argument.
- Now the Stdln.readInt is used to read the integers in the sequence and store it in integer x.
- The value stored in variable x will be printed using System.out.print
- Now unless the Stdln.readInt gets an empty value, check each value of sequence and store in variable y.
- If y is not equal to previous value x, print it and shift the value of y into x.
- Repeat the loop again.
i hope it will help you!
Answer:There are two methods used to transmit data between digital devices: serial transmission and parallel transmission. Serial data transmission sends data bits one after another over a single channel. Parallel data transmission sends multiple data bits at the same time over multiple channels.
Explanation:
If you use your computer primarily for telnet into a remote computer, a person will not have a large long distance telephone bill.
<h3>What is telnet used for?</h3>
Telnet is known to be a kind of a network protocol that is said to be used to virtually look into a computer and to give a two-way, working hand in hand and text-based communication channel that exist between two machines.
Note that, If you use your computer primarily for telnet into a remote computer, a person will not have a large long distance telephone bill because it does not apply in any way.
Learn more about telnet from
brainly.com/question/23640188
#SPJ1