Suche: 

 

Eine wunderbare Einführung in UML

 
Fragen und Antworten...

 
C#, ASP, WPF und XAML

 

| del.icio.us | digg.com | reddit.com | ma.gnolia.com | newsvine.com | furl.net | google | yahoo | technorati.com |

Hello World in Java (Applet) 

import java.applet.*;
import java.awt.*;

public class HelloWorld extends Applet {
   public void paint(Graphics g) {
      g.drawString("Hello World",10,10);
   }
}


Hello World in Java (Application) 

public class HelloWorld {
   public static void main(String[] args) {
      System.out.println("Hello World");
   }
}


Hello World in Java (Servlet) 

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet
{
  public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
  {
    PrintWriter out;
    String text = "Hello World in Java (Servlet)";
   
    response.setContentType("text/html");
    out = response.getWriter();
           
    out.println("<html><head><title>");
    out.println(text);
    out.println("</title></head><body>");
    out.println(text);
    out.println("</body></html>");

    out.close();
  }





Sie haben Fragen oder Anregungen?


Einen Kommentar hinzufügen 

Einen Kommentar hinzufügen

Ihr Name(*):
Email:
Webseite:
Kommentar(*):
  This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
Code im diesem Bild:
 

valid CSS 2.1 valid XHTML 1.0 Transitional
« c++ | Sie befinden sich: | programmieren | java | Objectiv C »