Home Answers Viewqa Java-Beginners util packages in java

 
 


trupti.k
util packages in java
1 Answer(s)      a year and 2 months ago
Posted in : Java Beginners

write a java program to display present date and after 25days what will be the date?

View Answers

March 23, 2012 at 11:34 AM


import java.util.*;
import java.text.*;
class FindDate{
    public static void main(String[] args){
        Date today = new Date();
        SimpleDateFormat sdf=new SimpleDateFormat("dd-MM-yyyy");
        String presentDate=sdf.format(today);
        System.out.println("Current Date: "+presentDate);
        Calendar cal = new GregorianCalendar();
        cal.setTime(today);
        cal.add(Calendar.DAY_OF_MONTH, 25);
        Date newDate = cal.getTime();
        String date=sdf.format(newDate);
        System.out.println("Date after 25 days: "+date);

    }
}









Related Pages:
util packages in java
util packages in java  write a java program to display present date and after 25days what will be the date?   import java.util.*; import java.text.*; class FindDate{ public static void main(String[] args
Lang and Util Base Libraries
Lang and Util Base Libraries The Base libraries provides us the fundamental features and functionality of the Java platform. Lang and Util Packages Lang and Util package provides the fundamental classes and Object of primitive type
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
"); it compiles succesfully but when i do c:\world>java world.HelloWorld
Java Util Package - Utility Package of Java
Java Util Package - Utility Package of Java       Java Utility package is one of the most commonly used packages in the java program. The Utility Package of Java consist
Java Util Examples List
Java Util Examples List - Util Tutorials       The util package or java provides many utility interfaces and classes for easy manipulation of in-memory data. The java util
Java packages
Java packages  What restrictions are placed on the location of a package statement within a source code file
Packages - Importing
packages Java libraries are organized in packages (directories). The most... Java NotesPackages - Importing Multiple classes of larger programs are usually grouped together into a package. Packages correspond to directories
java.net packages - Java Beginners
java.net packages  Tell me some impotant classes to used in java.net packages?  hi friend, import java.net.*; import java.io...., http://www.roseindia.net/java/network/index.shtml Thanks
Packages - Defining
Java NotesPackages - Defining Package = directory. Multiple classes of larger programs are usually grouped together into a package. Packages correspond.... Programs that use this library will be developed in their own packages. With its
Java Packages - Java Beginners
Java Packages  how to write a package by getting the inputs from the user?(ex: student details and staff qualification in one package)and also to compile and run this program
JAVA PACKAGES - Java Beginners
JAVA PACKAGES  I HAVE A DOUBT. I CRATED A PACKAGE BUT I AM NOT ABLE TO IMMPORT ANY FILES TO THE ANOTHER PACKAGE HOW CAN I IMPORT ANY PACKAGE FROM...://www.roseindia.net/java/master-java/index.shtml Thanks. Amardeep
packages - Java Beginners
Java package creation example  What is Package in Java? How can i create a package in Class
io packages - Java Beginners
io packages  How can I add two integers in java using io pacages
Regarding Documentation of Packages
Regarding Documentation of Packages  Hello How to get java packages ie documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math etc
Java package,Java Packages
convention of packages A hierarchical naming pattern is used for java packages.... Packages in Core Java Package Description... Java Package      
Other Base Packages
Other Base Packages I/O For handling i/o of an application in java , java.io... for the development of the beans. Java Management Extensions (JMX) For monitoring and managing resources we incorporate this API which is termed as Java Management
java util date - Time Zone throwing illegal argument exception
java util date - Time Zone throwing illegal argument exception  Sample Code String timestamp1 = "Wed Mar 02 00:00:54 PST 2011"; Date d = new Date...()); The date object is not getting created for IST time zone. Java
Packages and Import
) name which contains the .java files. You declare packages when you define your Java program, and you name the packages you want to use from other libraries... There are 166 packages containing 3279 classes and interfaces in Java 5. However, only
Hi...doubt on Packages - Java Beginners
Package in java.. I have downloaded one program on Password Authentication... ..Explain me.  Hi friend, Package javax.mail The Java Mail API allows the developers to add mailing functionalities to their java applications
Packages - Installing
Java NotesPackages - Installing As extensive as Java's library is, there are sometimes other packages that you want to use (eg for look and feel, data.... Where to put .jar file library packages A .jar file is basically a .zip file plus
Java util date
Java util date         The class Date in "java.util" package represents... to string and string to date. Read  more at: http:/www.roseindia.net/java/java
Java Util Zip. Zip files/folders inside a folder, without zipping the original source folder.
Java Util Zip. Zip files/folders inside a folder, without zipping the original source folder.   import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.zip.ZipEntry; import
Packages needed for JDBC in Linux
Packages needed for JDBC in Linux  Can anyone tell me the packages needed to run a program with JDBC in Red Hat 5
Joomla Development Packages
Joomla Development Packages  In offshore services, we also offer a full-bodied package on various Joomla CMS like: Joomla Custom Templates Package Joomla Starter Package Joomla Standard Package Joomla Composite Package
Agra Travel Packages
Agra Travel Packages We are offering customized Agra Travel Packages which... customization of these packages based on your travel requirements. As an individual... as customized group travel packages. Agra group packages are for corporate
Associate a value with an object
with an object in Java util. Here, you will know how to associate the value... of the several extentions to the java programming language i.e. the "
Getting Previous, Current and Next Day Date
previous, current and next date in java. The java util package provides... C:\vinod\Math_package>java GetPreviousAndNextDate Previous
Taj mahal tour packages information needed
Taj mahal tour packages information needed  Hi, I am planning to visit Taj Mahal with my friends next week. Can anyone suggest me the Taj Mahal tour... package. More related tour packages are: 1) Golden Triangle Tours with Shimla
java.util - Java Interview Questions
description of java.util PackageThe Java util package contains the collections framework..., internationalization, and miscellaneous utility classesThe util package of java provides... learn all the java utility packages classes and interfaces.The classes
JDBC Architecture
is found in "java.sql" and "javax.sql" packages. Given below... in library of java kit. It is not written in java entirely because the non-java... of different environment. The JDBC Client driver written in java, communicates
Alternative Data Structures
Java NotesAlternative Data Structures Packages have been developed outside of Sun for additional functionality. The following free, GPL, packages fill... Java List, Map, and Set interfaces. These packages address several
Get Java Version
Get Java Version       The Java has a lot changes since JDK1.0 as well as numerous additions of classes and packages. In addition to this class and package ,Java introduced
how to create a jar file for my packages classs - Struts
how to create a jar file for my packages classs  how to create a jar file for my packages classs in struts application .we don't want to see the see the classes other persons
Java Security
Java Security Java Security Packages JCA/JCE ( an outline... and packages in JDK, with code examples. Many of the concepts and technical terms thus.... There are three security-related packages in JDK1.4, as follows: 1. 

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.