Versionsvergleich

Aus ProgrammingWiki

Vergleich: 2012-04-29T22:11:01+00:00 → 2012-04-29T22:13:25+00:00

<language>Java</language>
= Befehlsreferenz (section) = 
== subsection ==
=== subsubsection ===
==== paragraph ====
===== subparagraph =====
====== kleinstmögliche ebene ======
'''Tabellen:'''
{| class="wikitable"
|-
! $n$         !! 1 !! 2 !! 3 !! 4 !! 5 !! $T(n)$
|-
| 10 || ... || ... || ... || ... || ... || .?. 
|-
| 100 || ... || ... || ... || ... || ... || .?. 
|-
| 1000 || ... || ... || ... || ... || ... || .?. 
|-
| 10000 || ... || ... || ... || ... || ... || .?. 
|-
| 100000|| ... || ... || ... || ... || ... || .?. 
|-
| 1000000|| ... || ... || ... || ... || ... || .?. 
|}
''Formeln:''
$T(n) = |n^2|$ für Formeln im Fließtext. Für abgesetzte Formeln:
$$T(n) = |n^2|$$
;Aufzählungen:
# erstens
# zweitens
# drittens
'''Listen:'''
* Punkt
* Punkt
* Punkt
<popup name="Hinweis">
Achtung, bei ; werden die Doppelpunkte nicht angezeigt!
</popup>
'''funktionierendes HTML (inklusive LaTeX):'''
<table width="30%" border="1" cellpadding="1" cellspacing="3">
   <tr>
      <td width="50%"> <b>stuff</b> </td>
      <td> <u>moar stuff</u> </td>
   </tr>
   <tr>
      <td> <i>look here!</i> </td>
      <td> <font color="red">stuff again</font> </td>
   </tr>
   <tr>
      <td align="center">$\sqrt{a^2 + b^2}$</td>
      <td align="center">$\frac{1}{7}$</td>
   </tr>
</table>
−
<h3>Listen (tags: h3 und li)</h3>
+
<h4>Listen (tags: h4, li und fonts)</h4>
<ul>
   <li><font face="Monotype Corsiva">Monotype Corsiva</font></li>
   <li><font face="Courier New">Courier New</font></li>
−
   <li><font face="Wingdings">Punkt</font></li>
+
   <li><font face="Comic Sans MS">Comic Sans MS</font></li>
</ul>
----
= Java-Test =
<code id="4f9db2c404094">
//note to self: code verstecken funktioniert auch innerhalb methoden
public Object Stack()
{
   int groesse = 20;
   int[] elemente = new int[groesse];
   int top = -1;
   public void push(int j)
      {elemente[++top] = j;}
   public int pop()
      {return elemente[top--];}
   public int peek()
      {return elemente[top];}
   public boolean istLeer()
      {return (top == -1);}
   
   return this;
}
</code>
<code id="4f9db2c40410a">
public Object Queue()
{
   int[] elemente = new int[0];
   int top;  
   int groesse = elemente.length;
    
   public boolean istLeer()
   {
      groesse = elemente.length;
      return groesse == 0;
   }
    
   public int peek()
   {
      top = elemente[0];
      return top;
   }
    
   public void enqueue(int element)
   {
      groesse = elemente.length;
      int[] neu = new int[groesse +1];
    	
      for (int i=0; i<=groesse-1; i++)
         neu[i] = elemente[i];
    	
      neu[groesse] = element;
      elemente = neu;
      top = elemente[0];
   }
    
   public int dequeue()
   {
      top = elemente[0];
      groesse = elemente.length;
      int[] neu = new int[groesse-1];
    	
      for(int i = 0; i < groesse-1; i++)
         neu[i] = elemente[i+1];
    	
      elemente = neu;
      return top;
   }
   return this; 
}
</code>