From e504b661d220b770829011da0dd697cd886862ba Mon Sep 17 00:00:00 2001 From: attorri <91044029+attorri@users.noreply.github.com> Date: Sun, 3 Oct 2021 11:15:24 -0400 Subject: [PATCH] Create csc120 hw3 --- csc120 hw3 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 csc120 hw3 diff --git a/csc120 hw3 b/csc120 hw3 new file mode 100644 index 0000000..ccfcefd --- /dev/null +++ b/csc120 hw3 @@ -0,0 +1,47 @@ +import java.util.*; +import javax.swing.JOptionPane; +import java.lang.*; +import java.io.*; +import java.util.Random; +public class Main +{ + public static void main(String[] args) + { + System.out.println("Hello World"); + Scanner keyboard = new Scanner(System.in); + System.out.println("today we are going to implement Run Length Encoding (RLE)"); + System.out.println("here is an example of RLE"); + String example="wwwcccsssccccom"; + int n = example.length(); + for (int i=0; i