From 5e7179a5020f04a6b6ea9e8a8a84c59454b1b8e2 Mon Sep 17 00:00:00 2001 From: Lucas Estrella Date: Fri, 3 Feb 2017 22:30:52 -0500 Subject: [PATCH] KRS sllist. Signed-off-by: Lucas Estrella --- Hello_World_Tutorials/Java_SLL.html | 226 ++++++++++++++++++++++------ 1 file changed, 178 insertions(+), 48 deletions(-) diff --git a/Hello_World_Tutorials/Java_SLL.html b/Hello_World_Tutorials/Java_SLL.html index 3f143ce5a..193180d2b 100644 --- a/Hello_World_Tutorials/Java_SLL.html +++ b/Hello_World_Tutorials/Java_SLL.html @@ -4,10 +4,10 @@

Imports

Main Exception

@@ -19,51 +19,181 @@

Main Exception

Inside our Main

+

StudentInfo Class

+ -

Code Summary: Your .java file should look like this

-
-    import bridges.connect.Bridges;
-    import bridges.base.SLelement;
-  
-    public class HelloWorld
-    {
-        public static void main(String[] args) throws Exception
-        {
-            //create the Bridges object
-            Bridges<String,String> bridge = new Bridges<>(1, "YOUR_API_KEY", "YOUR_USER_ID");
-            
-            //create elements
-            SLelement<String> e0 = new SLelement<>("Hello", "");
-            SLelement<String> e1 = new SLelement<>("World", "");
-            SLelement<String> e2 = new SLelement<>("!", "");
-            
-            //link elements
-            e0.setNext(e1);
-            e1.setNext(e2);
-            
-            //pass first element of data structure
-            bridge.setDataStructure(e0);
-            
-            //visualize data structure
-            bridge.visualize();
-        }
-    }
-