Youarecreatinganapplicationthatlistsprocessesonremotecomputers.Theapplicationrequiresamethodthatperformsthefollowingtasks:
AccepttheremotecomputernameasastringparameternamedstrComputer.
ReturnanArrayListobjectthatcontainsthenamesofallprocessesthatarerunningonthatcomputer.
YouneedtowriteacodesegmentthatretrievesthenameofeachprocessthatisrunningontheremotecomputerandaddsthenametotheArrayListobject.
Whichcodesegmentshouldyouuse?()