Comment

Marty
.,
April 28, 2008 at 7:18 AM

This didn't tell me anything and the program didn't work!
View All Comments | View Tutorial
Related Tutorial and Articles
General

Get first day of week
Get first day of week       In this section, we will learn how to get the first day of ...: The following program helps us in getting the first day of the week 

Java Tips and Examples

Learn Java in a day
Learn Java in a day     ....   Create first program in Java  In this section, you will learn to write a simple Java program. You just need  

Java Beginners

How to create first program in Java?
How to create first program in Java?  Hi, I am new in Java programming. Tell me How to create first program in Java? Thanks   Hi, Read more at First Java Program. Thanks 

General

Create First Program
Create First Program       In this section, you will learn to write a simple Java program. For developing a java program you just need  a simple text editor like 

Java Beginners

Output Previous or Next Day of the Month
Output Previous or Next Day of the Month   Please Help! I need to create the following program: Objective of this Program: (1) To learn about having... or previous day: The program should output the next day's or previous day's date 

General

First Java Program
First Java Program       In this section you will learn how to develop your first Java program... Machine.  You can write a Hello World program as your first Java 

Java-Tutorials

First Java Program Example
First Java Program Example In this section we will discuss about the first java program example. To create a Java program we would be required to create... your first program in Java. In this example I have created a simple class named 

Java Tips and Examples

Learn Java - Learn Java Quickly
Development Kit (JDK), then its time to write your first Java program. Create... the function of JVM How to write your First Java program Ok... screen as: Hey! you are going to compile and run your first Java program 

Java Beginners

My first Java Program
My first Java Program  I have been caught with a practical exam to do the following: Write a program that takes input from a user through the command line. The user must be prompt to enter a sentence (anything). The sentence 

Java Beginners

Where to learn java programming language
to download and install java. After that you should learn how to create Hello world program in Java. Then you can learn the basics and advance concepts of Java... fast and easily. New to programming Learn Java In A Day Master Java Tutorials 

General

Writing Simple Java Script Program
of JavaScript and create your first JavaScript program. Creating your first JavaScript Program In the last lesson you learned how to create simple java script... Writing Simple Java Script Program    

Java Tips and Examples

Find the Day of the Week
the day number within a current year. e.g. The first day of the year has value 1... Find the Day of the Week       This example finds the specified date of  an year and a day 

JDBC-Tutorials

JDBC Training, Learn JDBC yourself
: Learn Java in a Day and Master... java program to connect java application and execute sql query like create table... from given table through java code. Java code create connection between program 

Java Tips and Examples

Find Day of Month
Find Day of Month       This example explores how to find the day of a month and the day of a week  This example sets the year as 2007 and the day as 181. The example  

Java Beginners

How to Run First Java Bean Program ?
How to Run First Java Bean Program ?  Hi My Dear Friend I can run many Java Programs Like, Applet,Swing,RMI ,Socket Programming and Java Servlet too But Now I need that How to run Java Bean Now I have BDK1.1 But still don't 

General

First Step towards JDBC!
that enables the java program to manipulate data stored into the database. Here... in Java In this section, you will learn how to connect the MySQL database... that helps you to create a database table in a database through the java file 

General

How to create LineDraw In Java
How to create LineDraw In Java       Introduction This is a simple java program . In this section, you will learn how to create Line Drawing. This program  implements a line 

Java Beginners

learn
learn  how to input value in java 

General

Getting Previous, Current and Next Day Date
Getting Previous, Current and Next Day Date       In this section, you will learn how to get previous, current and next date in java. The java util package provides 

General

Depth-first Polymorphism - tutorial
Depth-first Polymorphism 2001-02-15 The Java Specialists' Newsletter [Issue 009] - Depth-first Polymorphism Author: Dr. Heinz M. Kabutz If you... of Common Lisp." And Java? Depth-first Polymorphism (or Customised 

Applet Questions

learn
learn  i need info about where i type the java's applet and awt programs,and how to compile and run them.please give me answer 

Java Beginners

Day for the given Date in Java
Day for the given Date in Java  How can i get the day for the user input data ?   Hello Friend, You can use the following code: import..."); String day=f.format(date); System.out.println(day 

General

How to Create Text Area In Java
How to Create Text Area In Java       In this section, you will learn how to create Text Area in Java. This section provides you a complete code of the program for illustrating 

JavaScript Tutorial

Conditions In Java Script
Conditions In Java Script       In this article you learn the basics of JavaScript and create your first JavaScript program. About JavaScript Java 

Java Tips and Examples

Hello world (First java program)
Hello world (First java program)   ... and running. Hello world program is the first step of java programming  language... to develop the robust application. Java application program is platform 

General

Java Script With Links and Images
Java Script With Links and Images       In this article you learn the basics of JavaScript and create your first JavaScript program. JavaScript Images 

General

Looping In Java Script
Looping In Java Script In this article you learn the basics of JavaScript and create your first JavaScript program. What is JavaScript loop?  The JavaScript loops used to execute the same block or code a specified number 

Java-Tutorials

Create a Desktop Pane Container in Java
Create a Desktop Pane Container in Java       In this section, you will learn how to create a desktop pane container in Java. The desktop pane container is a container, which has 

Java Beginners

Java Program
Java Program  How to Write a Java program which read in a number... out in the standard output. The program should be started like this: java... to be read. In this example, the program should create three threads for reading 

JavaScript Tutorial

Navigation with Combo box and Java Script
Navigation with Combo box and Java Script       In this article you learn the basics of JavaScript and create your first JavaScript program. What is JavaScript 

Programming Tutorials

Java zip package - Learn how to use java zip package.
Java zip package In this section we will learn about java.util.zip package of java library. We will also learn how to use the zip API to create and read the zip and gzip files within java program. The zip format is very easy method 

Java Beginners

Java Program
Java Program  Problem Statement You are required to write a program... given, then your program must create the expression: 8 - 5 * 2 = -2 Here..., thus expression 2-2+2 evaluates to 2 and not -2 Input Specification First line 

Java Tips and Examples

OOP Tutorial [first draft]
Java: OOP Tutorial [first draft] Table of contents Introduction.... Using the constructor Here is the first program rewritten to use the above class.... These notes are about programming and Java language features necessary for OOP, and do 

Java-Tutorials

Java Create Directory - Java Tutorial
Java Create Directory - Java Tutorial       Introduction In the section, you will learn how...: dir1/dir2/dir3 created C:\nisha> This program takes inputs to create 

Java Tips and Examples

Java Create Directory - Java Tutorial
Java Create Directory - Java Tutorial       In the section of Java Tutorial you will learn how to create directory using java program. This program also explains 

Java Beginners

to learn java
to learn java  I am b.com graduate. Can l able to learn java platform without knowing any basics software language.   Learn Java from the following link: Java Tutorials Here you will get several java tutorials 

JavaScript Tutorial

What is JavaScript? - Definition
the basics of JavaScript and create your first JavaScript program. What... JavaScript Program In the first lesson we will create very simple JavaScript program...;head> <title>First Java Script</title> <script 

Java Beginners

Learn java
Learn java  Hi, I am absolute beginner in Java programming Language. Can anyone tell me how I can learn: a) Basics of Java b) Advance Java c) Java frameworks and anything which is important. Thanks 

Java Code Examples

Java date add day
Java date add day In this tutorial, you will learn how to add days to date... to date or subtract days from date) for java applications. Here, we are going to add few days to current date and return the date of that day. For this, we 

Hibernate-Tutorials

First Hibernate Application
First Hibernate Application In this tutorial you will learn about how to create an application of Hibernate 4. Here I am giving an example which... : At first I have created a table named person in MySQL. CREATE TABLE `person 

Ajax Questions

Advance Java Training Program
Advance Java Training Program  Hi, Can anyone guide me how to study advance Java in few day's  Please visit the following link: Java Tutorials Through the above link, you will get the links of advanced java tutorials 

Java Tips and Examples

Hello world (First java program)
Hello world (First java program)   .... Hello world program is the first step of java programming  language... to develop the robust application. Java application program is platform independent 

Java-Tutorials

Create Layout Components in a Grid in Java
Create Layout Components in a Grid in Java       In this section, you will learn how to create layout components with the help of grid in Java Swing. The grid layout provides 

Spring Framework

Learn Features of Spring 3.0
. The Spring 3.0 Framework is released with the support of Java 5. So, you can use all the latest features of Java 5 with Spring 3 framework. The first... and released to simplify the development of Enterprise Java applications 

Java Beginners

What is the first argument of the String array in main() method?
. This is unlike C/C++ where the first element by default is the program name. You also learn how to declare a string array and the syntax for using in the program. This article gives your a very easy java program which illustrates about the string 

General

How to Create Circle In Java
How to Create Circle In Java       Introduction: This is a simple program of java awt. In this section, you will learn how to create Circle Diagram. The java circle is the most 

Java-Tutorials

Java EE or Java
should first learn Java and then JEE. Tutorials to Learn Java Java Index...What to learn - Java EE or Java? As a beginner if you are looking... Java correctly. So, let's first understand about different distribution 

Java Beginners

Sum of first n numbers
Sum of first n numbers  i want a simple java program which will show the sum of first n numbers....   import java.util.*; public class SumOfNumbers { public static void main(String[]args){ Scanner input=new 

Hibernate-Tutorials

First Hibernate 4 Example with Eclipse
First Hibernate 4 Example with Eclipse In this tutorial you will learn that how easily you can do your first example of Hibernate 4 with Eclipse First... you will have to use mysql-connector-java-5.1.3-rc-bin.jar ) to create 

Java Beginners

Java program? - Java Beginners
Java program?  In order for an object to escape planet's.... The escape velocity varies from planet to planet.Create a Java program which calculates the escape velocity for the planet. Your program should first prompt 

JSP-Tutorials

Create a JRadioButton Component in Java
Create a JRadioButton Component in Java       In this section, you will learn how to create a radio button in java swing. Radio Button is like check box. Differences between check 

Java Beginners

create and use an array variable in a java program
create and use an array variable in a java program  how do i write a program that will prompt the user for a list of 5 prices, once the user has entered all values , your program should compute and display the following: The sum 

Java-Tutorials

Create a Frame in Java
Create a Frame in Java       Introduction This program shows you how to create a frame in java AWT package. The frame in java works like the main window where your 

JavaScript Tutorial

String Number Operations in JavaScript
;     In this article you learn the basics of JavaScript and create your first JavaScript program.  What is String Number... program'.toUpperCase());  document.write(' first JavaScript program 

Spring Framework Questions

spring first example - Spring
\Intel\DMIX;C:\Program Files\Java\jdk1.6.0\bin;C:\ANT\bin; Jul 16, 2010 2:07:52...:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\Sun\Java\bin;C...\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Java\jdk1.6.0\bin;C:\ANT\bin 

General

Java get Next Day
Java get Next Day       In this section, you will study how to get the next day in java...() provide the string of days of week. To get the current day, we have used 

Java Tips and Examples

First Program - Do Nothing
Prev: none | Next: Dialog Box Output Java NotesFirst Program - Do Nothing Here is just about the smallest legal program you can write. It starts up, does... // Description: This is the smallest program. It does NOTHING. // File: doNothing 

XML Questions

java and xml problem. plz see this 1 first - XML
java and xml problem. plz see this 1 first  hi, i need to write a java program that generates an xml file as follows: xxx... ]]> s i have witten a program in java 

Java Beginners

java program
java program  write a program to create text area and display the various mouse handling events 

Java-Tutorials

Create a Scroll Pane Container in Java
Create a Scroll Pane Container in Java       In this section, you will learn how to create a scroll pane container in Java Swing. When you simply create a Text Area 

Java Tips and Examples

First Window
Java NotesExample - First Window This is about the simplest GUI... program must look like this. JFrame is the Java class for a "window..., and will appear in the top left corner of the screen, so you may not see it at first 

Hibernate Tutorial Example

Writing First Hibernate Code
table. Writing First Persistence Class Hibernate uses the Plain Old Java Objects... to write a program to insert the data into database. We should first understand... between a Java application and Hibernate. First we are required to get the Hibernate 

Java Beginners

Java Program MY NAME
Java Program MY NAME   Write a class that displays your first name vertically down the screen where each letter uses up to 5 rows by 5 columns...() { }, Then, method main should create an object of your class, then call the methods 

Java Beginners

java program
java program  write a program to create server and client such that server receives data from client using BuuferedReader and sends reply to client using PrintStream 

General

Class Average Program
;  This is a simple program of Java class. In this tutorial we will learn how to use java program for displaying average value. The java instances.... Description this program  Here in program we are going to use Class. First 

Regex Questions

java program
java program  write a java program to create an array of size 10 by taking input from bufferreader and find out the average of array elements from that array 

Regex Questions

java program
java program  write a java program to create an array of size 10 by taking input from bufferreader and find out the average of array elements from that array 

Java Beginners

Java Program
Java Program  I want to Write a program in JAVA to display to create a class called MATRIX using a two-dimensional array of integers. Perform the addition and subtraction of two matrices. Help me 

Java Beginners

java program
java program  write a java program to create an array of size 10 by taking input from bufferreader and find out the average of array elements from that array 

Java-Tutorials

How to create CheckBox On frame
;  This is very simple java program. In this section, you will learn how to create CheckBox on the frame. In the Java AWT, top-level windows... can learn in very efficient manner. In this section, you will see how to create 

Java-Tutorials

Create File in Java
;} } First, this program checks, the specified file "myfile.txt" is exist... Create a File       ... in string, rows, columns and lines etc. In this section, we will see how to create 

Java-Tutorials

Java Applet - Creating First Applet Example
Java Applet - Creating First Applet Example   ... the applet. An applet is a program written in java programming language... an applet program. Java source of applet is then compiled into java class file and we 

Java-Tutorials

Create a JSpinner Component in Java
Create a JSpinner Component in Java       In this section, you will learn how to create... are used to increase or decrease the numeric value. This program provides 

Java Beginners

program
program  Create a class called Employee with member variables employeeId, employeeDept and employeeSalary. Create a method called setEmployeeDetails with three parameters to set the employee details. Create another method 

Java-Tutorials

Where can I learn Java Programming
Learn Java in a Day Master Java in a Week More links for Java... and time to learn Java in a right way. This article is discussing the most asked question which is "Where can I learn Java Programming?". We have 

Java-Tutorials

Create a ToolBar in Java
Create a ToolBar in Java       In this section, you will learn how to create toolbar in java... been arranged horizontal in this program but, if you want to make it vertically 

General

How to Java Program
for the respective operating system. Java Program for Beginner Our first... How to Java Program       If you are beginner in java , want to learn and make career in the Java 

Java-Tutorials

Create a JList Component in Java
Create a JList Component in Java       In this section, you will learn how to create a JList... component has been shown in this article below: This program provides a List 

General

Java Thread Priority
Java Threads run with some priority There are Three types of Java Thread priority Normal, Maximum and Minimum Priority are set by setPriority() method. Java Thread Priority Example public class priority implements 

JavaScript Questions

java program
java program  Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage... I received already the answer last day thanks for the help...Plz answer 

Java Beginners

How to create a class in java
How to create a class in java  I am a beginner in programming and tried to learn how to do programming in Java. Friends please explain how can I create a class in Java 

General

Create zip file in Java
 

Framework Questions

java program
java program  Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes 

Java Beginners

create
create  how to create an excel file using java 

General

First Step towards JDBC!
First Step towards JDBC      ... and shows you how to create a database application to access the databases. For the shake of simplicity, in very first example Access database 

Java Beginners

java program
java program  . Create Product having following attributes: Product ID, Name, Category ID and UnitPrice. Create ElectricalProduct having the following additional attributes: VoltageRange and Wattage. Add a behavior to change 

Java Beginners

program help - Java Beginners
program help  In the following code, I want to modify class figure..., Abstract Class In java programming language, abstract classes are those... are not instantiated directly. First extend the base class and then instantiate 

Java Tips and Examples

Java Trees, Java JTree Example, Create Tree in Java, Creating a JTree Component
;  In this section, you will learn about the JTree and its components as well as how to create an JTree component. Here, first of all we.... Description of program: The following program creates the simple JTree 

Framework Questions

java program
java program  Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which is tax deducted from the salary. Also it has a method grade which would accept 

Java Beginners

java program
java program  Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which is tax deducted from the salary. Also it has a method grade which would accept 

JSP Servlet Questions

Java Program
Java Program  A Simple program of JSP to Display message, with steps to execute that program   Hi Friend, Follow these steps: 1)Go...:\apache-tomcat-5.5. 2)Like that create another variable classpath and put the path 

Java Beginners

Java Program - Java Beginners
Java Program  Hi I have this program I cant figure out. Write a program called DayGui.java that creates a GUI having the following properties... Mnemonic B Add individual event handlers to the your program so that when 

Java Beginners

java program
java program   You need to keep record of under- graduate, PhD students, faculty and staffs of your institute. Write an abstract class Person... the classes. Create a TA class which is derived from PhD_ student and Faculty 

JavaScript Questions

java program
java program  Problem 1 Write a javaScript program that would input Employee Name, rate per hour, No. of hours worked and will compute the daily wage... I received already the answer last day thanks for the help...Plz answer 

Framework Questions

java program
java program  . Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance & returns the new balance which is the sum of amount & balance. Similarly 

Java Beginners

Java Program
Java Program  I want the answer for this question. Question: Write a program to calculate and print the sum of odd numbers and the sum of even numbers for the first n natural numbers, where n is given as input from the user 

Regular expression

Replacing the first subsequence of the input
pattern p. matcher.replaceFirst("Java"):-This method will replace only the first...;} } Output of the program:- Text before replacing first... Replacing the first subsequence of the input   

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.