Home Submit Sources Feeds

General Development Java Tutorials

Java General Development Tutorials
Home » Java » General Development (53 Tutorials)
Creating Lists Using The Android ListActivity
Creating Lists Using The Android ListActivity tutorial
ListViews are used to create views with lists of data in Android applications. Lists can be populated with data from android data sources with cursors or with simple arrays. Custom views can be applied to Lists applying formatting including checkboxes and icons. Create new project called TestListActivities.
Clojure: Challenge your Java assumptions
Clojure: Challenge your Java assumptions tutorial
Clojure's immutable datatypes, lockless concurrency, and simple abstractions make parallel programming for multicore hardware simpler and more robust than in Java.
Get the Available Font Names
Get the Available Font Names tutorial
This Java tutorial shows how to get the list of available fonts on your computer using Java.
Generate a Unique ID
Generate a Unique ID tutorial
This quick Java tutorial shows how to create a unique ID in Java.
Get the Short Names of the Days
Get the Short Names of the Days tutorial
This Java tutorial shows how to get the short day names for the current locale or for a specific locale. Java provides an easy mechanism for getting localized short day names. To get the month names, you will use the DateFormatSymbols in the java.text package. By default, the constructor will create a DateFormatSymbols object based on the current locale.
Get the Short Names of the Months
Get the Short Names of the Months tutorial
This Java tutorial shows how to get the short month names for the current locale or for a specific locale. Java provides an easy mechanism for getting localized short month names. To get the month names, you will use the DateFormatSymbols in the java.text package. By default, the constructor will create a DateFormatSymbols object based on the current locale.
Get the List of Files in a Directory
Get the List of Files in a Directory tutorial
This Java tutorial shows how to get the list of files that are in a specific directory using Java. This tutorial will also show you how to filter the files to get only the files you are interested in.
Convert a String to Number
Convert a String to Number tutorial
This Java tutorial will show you how to convert a string to different number types. Each number type in Java has a parse method that allows you convert a string into the primitive type.
Convert a Hex String to an Integer and Back Again
Convert a Hex String to an Integer and Back Again tutorial
Have you ever wanted to convert a hex string to an integer or convert an integer to a hex string? Java makes this conversion a simple process. This Java tutorial shows you how.
Reverse a String
Reverse a String tutorial
This Java tutorial shows how to reverse the contents of a string.
Clone Java objects
Clone Java objects tutorial
Since objects in Java are manipulated through reference variables, there is no direct way to copy an object. Classes that want copying functionality must implement clone() method to do so. This guide shows how to make a Java class Cloneable and perform cloning.
Refactoring class methods
Refactoring class methods tutorial
This section discusses principles and practices that help to keep the source code of a class clean and easy to read.
Determine Palindromes
Determine Palindromes tutorial
This Java tutorial shows how to determine if a string is a palindrome using Java.
Recursive directory listings
Recursive directory listings tutorial
A simple and yet troublesome for some, part of Java coding, is the ability to move recursively through directory structures. When processing directories full of files this is most definitely needed. We can accomplish this with a simple logic jump. We need to create a method to process all the files of a given directory, that when a directory is encountered calls itself passing in the new File that contains the directory.
Double buffering, movement, and collision detection
Double buffering, movement, and collision detection tutorial
Those looking to get into game programming with java will likely find this tutorial more interesting than others. This tutorial will cover: Collision detection, movement via keyboard, double buffered animation, and a basic game loop. We are basically going to create a window with swing, actively render two double-buffered rectangles, move them around the screen, and check for collisions between them, all while using a basic game loop. I am going to be as Object Oriented (OO) as I can, so we will be creating a few classes.
Multidimensional Arrays
Multidimensional Arrays tutorial
This is a tutorial about multi-dimensional arrays, however a quick review of 1-dimensional arrays. The understanding of a 1-dimensional array is crucial to understanding 2 and 3-dimensional arrays.
Generics and the Stack
Generics and the Stack tutorial
Using generics allows you to define classes that can work with any defined type. This is very similar to the use of templates in C++. When you use collections like the vector and the stack you do not have to do any typecasting to get the correct value. This ensures that you cannot make silly errors with getting items from a collection. Without generics we had to use typecasting to get the correct data out of structures. The other problem is we are going to have problems if try to add the wrong data type. Generics ensure that we use the right data type and that we do not have any typecasting to do.
Stock quote and chart from Yahoo in Java
Stock quote and chart from Yahoo in Java tutorial
I was recently in need of a stock quote web service in order to display quote information and charts for a corporate website I was working on, so I started looking around for something, free of course. I
Learn to use Spring Faces with Spring Web Flow
Learn to use Spring Faces with Spring Web Flow tutorial
This Chapter gives an overview and also a detailed explanation on the usage of Spring Faces with Spring Web Flow. For better understanding, it also explains the essential basics around JavaServer Faces. (pdf file, install Acrobat Reader to view this tutorial)
Multithreading Fundamentals in Java
Multithreading Fundamentals in Java tutorial
This tutorial covers how to create and manage threads in Java's multithreaded environment. It also explains the part that the Runnable interface plays in having classes run inside threads.Read This Java Tutorial
Home » Java » General Development (53 Tutorials)
 
Subcategories
 
Categories
 
Advertisement