document.write('<link rel="stylesheet" type="text/css" href="http://www.naslu.com/css/SyntaxHighlighter.css" />');
document.write('<textarea name="code" id="code" class="java" rows="1" cols="1">');
document.write('class Complejo {\n    public double real;\n    public double imag;\n    \n    public Complejo(double re ,double im)\n\n    {\n	this.real=re;\n	this.imag=im;\n    }\n    \n    public Complejo Add(Complejo z)\n    {\n	return new Complejo(this.real + z.real , this.imag + z.imag);\n    }\n}\n\n\n\nclass hilo extends Thread {\n      public hilo(Complejo n1,Complejo n2) {\n	\n      }\n      public void run() {\n        \n	      Complejo a = new Complejo(40,56);\n	      Complejo b = new Complejo(10,-10);\n	      Complejo c = a.Add(b);\n	      System.out.println("Parte real: " + c.real);\n	      System.out.println("Parte imaginaria: " + c.imag);\n	      \n      }\n      \n}');
document.write('</textarea>');
document.write('<script languaje="javascript" type="text/javascript">');
document.write('dp.SyntaxHighlighter.ClipboardSwf = \'http://www.naslu.com/flash/clipboard.swf\';dp.SyntaxHighlighter.HighlightAll("code");');
document.write('</script>');
document.write('<a href="http://www.naslu.com" style="font-family:Arial;font-size:9px;color:#444444;font-weight:bold;">Powered by naslu.com</a>');