<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4569438514132169887</id><updated>2012-02-16T15:38:09.286-08:00</updated><category term='C++'/><category term='C#'/><category term='Data Structure'/><category term='Stack'/><category term='node'/><category term='Java'/><category term='C'/><category term='Hello World'/><title type='text'>Share Your Code</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codeshared.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4569438514132169887/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://codeshared.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>subhi</name><uri>http://www.blogger.com/profile/14334115278197775350</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_6vLAwWx_t3g/SaVogoNmILI/AAAAAAAAAAM/awp0iYnQbB0/S220/aku.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4569438514132169887.post-1710918233966286819</id><published>2009-02-21T16:00:00.000-08:00</published><updated>2009-02-25T07:58:36.280-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Stack'/><category scheme='http://www.blogger.com/atom/ns#' term='Data Structure'/><title type='text'>Stack Using Java</title><content type='html'>&lt;code&gt;&lt;br /&gt;package sub.datastructure;&lt;br /&gt;&lt;br /&gt;public class Stack {&lt;br /&gt;&lt;br /&gt; private &lt;a href="http://codeshared.blogspot.com/2009/02/create-node.html"&gt;Node&lt;/a&gt; head;&lt;br /&gt; private &lt;a href="http://codeshared.blogspot.com/2009/02/create-node.html"&gt;Node&lt;/a&gt; tail;&lt;br /&gt; private int length;&lt;br /&gt; &lt;br /&gt; public Stack() {&lt;br /&gt;  head = new &lt;a href="http://codeshared.blogspot.com/2009/02/create-node.html"&gt;Node&lt;/a&gt;();&lt;br /&gt;  tail = head;&lt;br /&gt;  length = 0;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; public void push(Object data) {&lt;br /&gt;  &lt;a href="http://codeshared.blogspot.com/2009/02/create-node.html"&gt;Node&lt;/a&gt; node = new Node(data);&lt;br /&gt;  node.setNext(head);&lt;br /&gt;  head = node;&lt;br /&gt;  length++;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; public &lt;a href="http://codeshared.blogspot.com/2009/02/create-node.html"&gt;Node&lt;/a&gt; pop() {&lt;br /&gt;  if(length == 0) return null;&lt;br /&gt;  &lt;a href="http://codeshared.blogspot.com/2009/02/create-node.html"&gt;Node&lt;/a&gt; node = head;&lt;br /&gt;  head = node.getNext();&lt;br /&gt;  node.getNext().setNext(null);&lt;br /&gt;  length--;&lt;br /&gt;  System.gc();&lt;br /&gt;  return node;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; public void print() {&lt;br /&gt;  &lt;a href="http://codeshared.blogspot.com/2009/02/create-node.html"&gt;Node&lt;/a&gt; node = head;&lt;br /&gt;  while(node.getNext() != null) {&lt;br /&gt;   System.out.println(node.getData());&lt;br /&gt;   node = node.getNext();&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4569438514132169887-1710918233966286819?l=codeshared.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeshared.blogspot.com/feeds/1710918233966286819/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://codeshared.blogspot.com/2009/02/stack-using-java.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4569438514132169887/posts/default/1710918233966286819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4569438514132169887/posts/default/1710918233966286819'/><link rel='alternate' type='text/html' href='http://codeshared.blogspot.com/2009/02/stack-using-java.html' title='Stack Using Java'/><author><name>subhi</name><uri>http://www.blogger.com/profile/14334115278197775350</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_6vLAwWx_t3g/SaVogoNmILI/AAAAAAAAAAM/awp0iYnQbB0/S220/aku.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4569438514132169887.post-757129897881413205</id><published>2009-02-21T15:52:00.000-08:00</published><updated>2009-02-22T15:10:12.850-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='node'/><title type='text'>Create Node</title><content type='html'>&lt;code&gt;&lt;br /&gt;package sub.datastructure;&lt;br /&gt;&lt;br /&gt;public class Node {&lt;br /&gt;&lt;br /&gt;private Object data;&lt;br /&gt;private Node next;&lt;br /&gt;&lt;br /&gt;public Node() {&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Node(Object data) {&lt;br /&gt;this.data = data;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setData(Object data) {&lt;br /&gt;this.data = data;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setNext(Node next) {&lt;br /&gt;this.next = next;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Object getData() {&lt;br /&gt;return data;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public Node getNext() {&lt;br /&gt;return next;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4569438514132169887-757129897881413205?l=codeshared.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeshared.blogspot.com/feeds/757129897881413205/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://codeshared.blogspot.com/2009/02/create-node.html#comment-form' title='3 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4569438514132169887/posts/default/757129897881413205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4569438514132169887/posts/default/757129897881413205'/><link rel='alternate' type='text/html' href='http://codeshared.blogspot.com/2009/02/create-node.html' title='Create Node'/><author><name>subhi</name><uri>http://www.blogger.com/profile/14334115278197775350</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_6vLAwWx_t3g/SaVogoNmILI/AAAAAAAAAAM/awp0iYnQbB0/S220/aku.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4569438514132169887.post-932482513836796083</id><published>2009-01-21T14:48:00.000-08:00</published><updated>2009-02-10T02:28:34.094-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>Hello World, The First Programme</title><content type='html'>&lt;h2&gt;Hello World in C&lt;/h2&gt;&lt;br /&gt;&lt;code&gt;#include &amp;#60stdio.h&amp;#62&lt;br /&gt;&lt;br /&gt;int main() {&lt;br /&gt;&lt;t&gt;printf("Hello World");&lt;/t&gt;&lt;br /&gt;&lt;t&gt;return 0;&lt;/t&gt;&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Hello World in C++&lt;/h2&gt;&lt;br /&gt;&lt;code&gt;#include &amp;#60iostream&amp;#62&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;int main() {&lt;br /&gt;cout&lt;&lt; "Hello World";&lt;br /&gt;return 0;&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Hello World in C#&lt;/h2&gt;&lt;br /&gt;&lt;code&gt;public class HelloWorld {&lt;br /&gt;public static void Main(string[] args) {&lt;br /&gt;System.Console.Writeline("Hello World");&lt;br /&gt;}&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Hello World in Java&lt;/h2&gt;&lt;br /&gt;&lt;code&gt;public class HelloWorld {&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt;System.out.println("Hello World");&lt;br /&gt;}&lt;br /&gt;}&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4569438514132169887-932482513836796083?l=codeshared.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeshared.blogspot.com/feeds/932482513836796083/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://codeshared.blogspot.com/2009/01/hello-world-first-programme.html#comment-form' title='1 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4569438514132169887/posts/default/932482513836796083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4569438514132169887/posts/default/932482513836796083'/><link rel='alternate' type='text/html' href='http://codeshared.blogspot.com/2009/01/hello-world-first-programme.html' title='Hello World, The First Programme'/><author><name>subhi</name><uri>http://www.blogger.com/profile/14334115278197775350</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_6vLAwWx_t3g/SaVogoNmILI/AAAAAAAAAAM/awp0iYnQbB0/S220/aku.jpg'/></author><thr:total>1</thr:total></entry></feed>
