Question: Lab 1 0 Java Programming 1 . Declare and implement a class named RunLengthCode. This class will have the following XU 0 8 methods: compress
"Lab
Java Programming
Declare and implement a class named RunLengthCode. This class will have the following XU methods:
compressString p; compresses plain text p to cipher text c using the runlength coding method, where each letter appearing successively or more times will be replaced by one occurrence of the letter followed by its count. If p abbbcc then it should return abcc for example.
decompressString c; decompresses c back to pabcc will be decompressed to abbbcc
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
