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:
C
Explanation:
Well, in your inquiry it says
"A presentation software that is used to organize and present pertinent information using graphics, word processing, outlining, drawing, and presentation management tools"
We know it isn't Microsoft Word, because Microsoft Word doesn't have a presentation feature. We know it isn't Excel because Excel is only meant for spreadsheet and analytics data.
However, on PowerPoint all these points make sense, PowerPoint is a tool that Microsoft created for the capabilities such as to present information, you can also put information inside of graphics as well, you can also draw, and outline too.
D. Por el uso de tubos de vacio.
When an object of a derived class is instantiated, the base class constructor initializes the base class members.
<h3>What is the meaning of basic class?</h3>
- A base class is a course, in object-oriented programming terminology, from which other classes are derived.
- It allows the design of other types that can reuse the code implicitly inherited from the base class (except constructors and Destructo
- A class that is a parent of another class, or from which other classes can be derived, is understood as a base type.
- Diagram of a class legacy order that has numerous examples of the CollectibleString base class
To learn more about base class , refer to:
brainly.com/question/27791611
#SPJ4