background preloader

Java web development tutorials

Java web development tutorials

google/guava Coreservlets.com: Java, JSF 2.0, Ajax, jQuery, Spring, Hibernate, REST, Hadoop, and GWT Training, Tutorials, Consulting, Books, & Resources How to make a java class compatible with Set or Map Home Collections intro Lists Maps Sets Which collection class? Sorting Hashing Advanced Video lecture: hash tables Bloom filters If you've read this site's hash function guidelines, or if you have prior knowledge of hashing, then you may have an idea of how to write the hash function itself. The basics: override hashCode() and equals() Put very simply, there are two methods that a class needs to override to make objects of that class work as hash map keys: public int hashCode(); public boolean equals(Object o); As you might expect, the hashCode() method is where we put our hash function. The equals() method The equals() method must return true if the fields of the current object equal those of the object passed in, else return false. Example Now let's see an example. 1.

Kleine Java-Applets zum Download - Java Applets - Drei Beispiele von aktuell 34 verfügbaren Applets: Begeben Sie sich auf eine Reise durch die unendlichen Weiten des fraktalen Apfelmännchens.Einfach per Mausklick: (Unkomprimiert sieht's noch viel hübscher aus ...) => Apfelmännchen Zoom 2 Suchen Sie einen orginellen Sound-Effekt für Ihre Homepage ? => Morsezeichen-Ticker Oder wollten Sie schon immer mal wissen, wie diese oder jene Funktion aussieht: => Funktionsplotter Java Tutorial Blog How to choose which Java collection class to use? Home Collections intro Lists Maps Sets Which collection class? Sorting Hashing Advanced Video lecture: hash tables Bloom filters The Java Collections API provides a whole host of data structures, especially since the API was expanded in Java 5 (and again slightly in Java 6) to include concurrent collections. Basic approach to choosing a collection The overall approach I'd suggest for choosing is as follows: choose the general type of organisation that your data needs to have (e.g. map or list); without too much thought, this is usually fairly clear; then, choose the implementation of that type that has the minimum functionality that you actually require (e.g. don't choose a sorted structure if you don't actually need the data to be sorted). In general, the algorithm that underlies each collection class is designed to be a good tradeoff between efficiency and certain minimal requirements. 1. The first three of these are really "bread and butter" collection types.

javabeginners.de Java-Quelltextfragmente für Anfänger Spring Framework Introduction The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments. Features Dependency InjectionAspect-Oriented Programming including Spring's declarative transaction managementSpring MVC web application and RESTful web service frameworkFoundational support for JDBC, JPA, JMSMuch more... Quick Start Spring Framework includes a number of different modules, here we are showing spring-context which provides core functionality. Once you've set up your build with the spring-context dependency, you'll be able to do the following: hello/MessageService.java package hello; public interface MessageService { String getMessage();}

The Java™ Tutorials The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available. See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases. See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases. The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Trails Covering the Basics These trails are available in book form as The Java Tutorial, Sixth Edition. Creating Graphical User Interfaces Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform. Specialized Trails and Lessons These trails and lessons are only available as web pages. Trails Covering the Basics

Excelsior JET - Java Virtual Machine (JVM) and Native Code Compiler Narisa.com | Software Society The Java™ Tutorials The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". The Java Tutorials primarily describe features in Java SE 8. What's New The Java Tutorials are continuously updated to keep up with changes to the Java Platform and to incorporate feedback from our readers. This release of the tutorial corresponds to the JDK 8u101 release. Two new processing limit properties, entityReplacementLimit and maxXMLNameLimit, have been added to JAXP. Trails Covering the Basics These trails are available in book form as The Java Tutorial, Sixth Edition. Creating Graphical User Interfaces Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform.Creating a JavaFX GUI — A collection of JavaFX tutorials. Specialized Trails and Lessons

Related: