Home Tutorialhelp Comment it worked with some modification

 
 

Comment

Shafique
it worked with some modification,
September 24, 2010 at 1:03 PM

well this java code was a success though i had to modify it to suite my need of generating a given number of leap years ahead of the current year
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

Java XML modification - Java Beginners
Java XML modification  hey I want to delete the nodes in Xml file & that should be updated in xml file.here is what i have tried. import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter 

Java Beginners

missing some import class(may be) - Java Beginners
missing some import class(may be)  Hi,Experts,I am a new one. I have made class in java,using netbeans 6.0.1 this getting error if i mouse over... shape.java", what i missed?   Hi, You have to change the java file name 

Java Beginners

I face some problem - Java Beginners
I face some problem  I face some problem in my project plz deepak halp me how can i solve this problem i m using bean and jsp file also. and deployee the using tomcat server plz help me how can i solve thisproblem HTTP Status 

Java Beginners

Some additions for my previous question - Java Beginners
Some additions for my previous question  This is the question I posted several hours ago: "I'm trying to write a program that has a text field for input, two buttons and the output text area. A user is asked to type in a number 

Java-Tutorials

Getting the modification date and time of file or folder in Java
C:\nisha>java GetDirectoryAndFileModifiedTime Enter file or directory name in proper format to get the modification date and time : myfile.txt File name : myfile.txt File modification date 

Java Beginners

can some help out on wrting this program. - Java Beginners
can some help out on wrting this program.  Write a Java program... and the price of the order computed to your program. NOTE: The first number on the file 

Programming Tutorials

Java XML modification
Java XML modification This section explain you how to modify the xml file using DOM parser. For this purpose, you have to use DocumentBuilderFactory, DocumentBuilder and Document classes to get the default DOM parser and parse the xml 

Java Beginners

really need help on how to write this program plz some 1 help out. - Java Beginners
really need help on how to write this program plz some 1 help out.  i am confused here on what to write can some 1 help out here i dont quite understand how to code it so can some 1 help out. Part II Write, compile and execute 

Java Beginners

i am confused here on what to write can some 1 help out here - Java Beginners
i am confused here on what to write can some 1 help out here  i don't quite understand how to code it so can some one help out 

Java Beginners

suggest some latest domains and its related project titles,abstracts - Java Beginners
suggest some latest domains and its related project titles,abstracts  what are the latest project titles? can u suggest some project titles in image... ? please give me some project titles which can we able to implement 

Free Magazine

Create your own Notepad in Java
Create your own Notepad in Java           You must have worked with Notepad to write programs. Now its turn to create notepad by own with the help of java language 

Development process Questions

Java: Some problems in given condition
Java: Some problems in given condition   SIR, I want to get the values from the table( database), if any one of the column of the table value is 0. Then one alert should b printed in application using Java. If(att.getdata1()==0 

Java Beginners

Can you tell me how it worked?
Can you tell me how it worked?  public class Ball { private static final int DIAMETER = 30; int x = 0; int y = 0; int xa = 1; int ya = 1; private Game game; public Ball(Game game) { this.game= game; } void move 

PHP Tutorial

Session Modification
Session Modification in PHP Session modification can be done through incrementing the loop. As the counting of loop increments, the session be modified.  First of all, begin the session with session_start(),  set the input 

Java Beginners

Hiiii - Java Beginners
worked your project. project are running but coming some problem. And also 

Programming Tutorials

Some Notes on Java Programming Environments
Appendix 2: Some Notes on Java Programming Environments ANYONE WHO...-line environments. All programming environments for Java require some text... Java web site.) The rest of this appendix contains some basic instructions 

Spring Framework

Modification in conventional ModelAndView
In this section, you will get to known about the new modification in conventional ModelAndView 

Java Beginners

String Array - Java Beginners
String Array  Thanks for the help you had provided,,, Your solution did worked... I worked on the previous solution given by you and it worked.... I... again,,, and I'll come back to you , if I had other problem regarding JAVA 

Java Beginners

adding some value to new column
adding some value to new column   how to update a column having some value into new column that also have some value i need to add this two value in java using result set we can get all the column data but how to add these value 

Java Beginners

java beginners - Java Beginners
/= per minute Write a java program to accept number of hours he worked and print...java beginners   pl. let me know the program for the following...*****"); System.out.println("Name: "+name); System.out.println("You have worked 

Java Beginners

Some error find whats the problem
Some error find whats the problem  import java.io.*; public class Replace { public void main()throwsIoException { InputStreamReader = new... not use Split method   Java replace string import java.io.*; public class 

Applet Questions

Help please, some strange errors
Help please, some strange errors  Sorry about this messy formatting. As a beginner in java i got no idea which part of the code is creating... game of two players with some basic things like moving the player on the game 

Java Beginners

Core Java Doubts - Java Beginners
from any further modification by external component. In Java there are four...Core Java Doubts  1)How to swap two numbers suppose a=5 b=10; without... the Comparator class does not compare its instances, but some other class?s 

Java Beginners

Java Question Anyone need some HELP !!
Java Question Anyone need some HELP !!  Create a file that contains... and poi-scratchpad-3.2-FINAL-20081019.jar files into the following path: \Java\jdk1.7.0\lib \Java\jdk1.7.0\jre\lib \Java\jdk1.7.0\jre\lib\ext \Java\jre7\lib 

Java Beginners

PLZ Need some help JAVA...HELP !!
PLZ Need some help JAVA...HELP !!  Create a class names Purchase Each purchase contains an invoice number, amount of sale and amount of sales tax. Include set methods for the invoice number and sale amount. Within the set 

Java Beginners

please help me - Java Beginners
please help me   I have some error in this programe //write acomputer programe using java to generate following series : //output: //1,2,3,0... have done modification in your code and here is the code according to the series 

J2EE

ServletContext Java EE 6
ServletContext Java EE 6 In this tutorial you will learn about the modification in ServletContext interface's made in Java EE 6. Definition of ServletContext... at per Java Virtual Machine that can share the common information to all 

Java Technology Tutorials

Finding Last Modification Date of a file
Get the Last Modification Date      Get the Last Modification Date This section contains the detail about how to get the last modification date of a file 

Java Beginners

java - Java Beginners
java  hiiiiiiiiiiiii, Thanks for ur reply,can u plz tell me is there any color modification possible in java coding,if so explain me and send me the code also.And i have another problem while visiting this website 

Java Beginners

StringBuffer - Java Beginners
with deleteCharAt().insert(,,) worked, or if (charArray[i] == 'a'){charArray[i] = 0;} converting the StringBuffer using charArray[] also worked well, but not where 

Java Beginners

Program - Java Beginners
Program  Sir, In the following code,I need some modification such that if i enter the emp ID more than once,it must not accept it.. Rather,It must display"An Employee with same ID already Exists.." Please send me 

Java Beginners

java beginners - Java Beginners
java beginners   what are real constant? give some example of real constant. which of the following is the valid real constant. 2.0, -16.0, +15/2, 1.9E, 189.E4, 0.67E3.6  Hi Friend, A real constant is a real 

Java-Tutorials

Java Video Tutorials for beginners
Java Video Tutorials for beginners are being provided at Roseindia online for free. These video tutorials are prepared by some of the best minds of Java... and knowledge of Java and have poured it down for the used of young programmers 

Java Beginners

java programming problem - Java Beginners
.. http://www.roseindia.net/java/beginners/java-word-count.shtml http://roseindia.net...://www.roseindia.net/java/beginners/java-word-count.shtml http://roseindia.net/java...java programming problem  Hello..could you please tell me how can I 

Java Beginners

Program to display palindrome numbers between some range
Program to display palindrome numbers between some range  Hi!I want a java program to display palindrome numbers between 100 to 1000.can you please explain me the logic with an example   import java.util.*; public 

Java Beginners

java - Java Beginners
hours worked over 40.a tax amount of 3.625 percent of gross salary will be deducted 

Java Beginners

Give me some java Forum like Rose India.net
Give me some java Forum like Rose India.net  Friends... Please suggest some forum like RoseIndia.net where we can ask question like here. Thanks 

Java Beginners

Give me some java Forum like Rose India.net
Give me some java Forum like Rose India.net  Friends... Please suggest some forum like RoseIndia.net where we can ask question like here. Thanks 

Java-Tutorials

Java beginners Course
Java beginners course at RoseIndia is one of the best way to learn Java language online. Developed by some of the best minds in this field, this online Java course helps novices to learn the language in a very easy and quick manner 

Java Beginners

java - Java Beginners
://www.roseindia.net/java/beginners/arrayexamples/index.shtml Here you...java  I want to about array of objects with some examples. How it works. Thanks....... shambhu.......  Hi Friend, The object 

Java Beginners

Access and Java - Java Beginners
, worked hours, Overtime if any) when a new employee is hired, the Salary... the employee records in EXCESS and convert it to JAVA programing with solid and simple java codes 

Java Beginners

Java programs - Java Beginners
Java programs  Hello Please write the following programs for me using GUI.Thanks You. 1. Write a java program that reads the first name, last name, hours worked and hourly rate for an employee. Then print the name 

General

Copy a file to other destination and show the modification time of destination file
Copy a file to other destination and show the modification time...; This is detailed java code that copies a source file to destination file, this code... source file in the same directory where java code file has been saved 

Java Beginners

java - Java Beginners
Java collections example  Can you please provide me some of the java collections examples and source code 

Java Beginners

pava program - Java Beginners
problem. public class LeapYear { public static void main (String[] args.... http://www.roseindia.net/java/ Thanks 

Log4J Questions

some queries pertaining to use of log4j for logging in a java application-
some queries pertaining to use of log4j for logging in a java application- ... some sample code to do the above? (2) Which all classses have to be imported... to use the same log file across different java classes? How do I invoke 

Java Beginners

Java Basics - Java Beginners
Java Basics  hi, i want toknw d full details of this. actually we knw dat for string comparison we use equals() method. but i did like dis...) { System.out.println("equal"); } it worked fyn..but if i do d same from creating 

Java Beginners

java - Java Beginners
-conversion http://www.roseindia.net/java/beginners I hope this will help you...java  Q 1- write a program in java to generate Armstrong numbers up to a specific limit? Q2- write a program in java to check a given number 

Java Beginners

java projgam - Java Beginners
java projgam  Dear roseindia , How to conncet the backend in java program .Please give some example program for commecting the backend (orical 

Java Beginners

Java - Java Beginners
ORIENTED PROGRAMMING) USING JAVA...JAVA CODES.WHAT SHOULD I CHOOSE BECAUSE I... are organized around objects and data rather than actions and logic. Objects represent some... of the problem, preparing a solution, coding and finally its maintenance. Java 

Java Beginners

java-io - Java Beginners
http://www.roseindia.net/java/beginners/SquareMatrix.shtml Thanks...java-io  Hi Deepak; down core java io using class in myn... your code do some changes in your code : int r,c; int arr[][]; intialize r 

Java-Tutorials

Java projects for beginners
In this tutorial you will be briefed about the Java projects for beginners... is more tutorials for Java coding for beginners What... Hello World Java Program Java Beginners tutorial Home page 

Java-Tutorials

Java basics for beginners
With this article we are introducing beginners in Java with its basics. Java... modification called Write Once Run Anywhere (WORA) Java programs are simple, secure..., Java is used to develop some of the most complex web, mobile and desktop 

Servlets

Java : Servlet Tutorials
Java : Servlet Tutorials       Java Servlets it Java technology for creating the dynamic web applications. Java Servlets are server side components in Java that runs 

Java Technology Tutorials

Java file modified date
Java file modified date In this section, you will learn how to find the modification date and time of the file. Description of code: We have created... that will return the modification date and time of the file. This return value 

Java Beginners

java code - Java Beginners
java code  i m doing aproject on tsp can you provide me the entire source code for the problem in java for 10 cities   Hi Friend, Please send some more details. Thanks 

Java Beginners

java beginners - Java Beginners
the following links: http://www.roseindia.net/java/beginners/StringTokenizing.shtml http://www.roseindia.net/java/beginners/tokenizingjavasourcecode.shtml...java beginners  what is StringTokenizer? what is the funciton 

Java Beginners

java - Java Beginners
java  how to input the character data from user  System.in is use for get some input from user 

Java Beginners

java - Java Beginners
java   how to include crystel report to a java web project.I am using eclipse ide, my friend give some files(.js files) to me ,but don't know how to use it. can any one help me 

Java Beginners

java code - Java Beginners
java code  How to write a a javcode to access the data from .xls file using select query based on some condition .(plz explain in steps )  Hi Friend, Please visit the following link : http://www.roseindia.net 

Java Beginners

java - Java Beginners
java   Thanku for posting answers for my questions. how to create reports in java & which tools are used for this. how to edit some fields in reports pls give me answer it is very urgent for me i will be thankful to you 

Java Beginners

java programming - Java Beginners
java programming  hi sir, i hav send u a code jus now regarding that program but it tends to be having error. Can u help me check? And still not sure whether some place got error 

Java Beginners

Algorithm_2 - Java Beginners
Sort,please visit the following link: http://roseindia.net/java/beginners...Algorithm_2  Hi Friends, Some friends ask me what is the specify algorithm you want?Ok I'm sorry, I forget mention that; The basic algorithm 

Java Beginners

java code - Java Beginners
java code  how can we convert an RGB image into its grayscale...://www.roseindia.net/java/example/java/swing/color-effect-image.shtml The code, you will get from the above link, consist of some radio buttons to show different 

Java Beginners

Java Project - Java Beginners
Java Project  I'm a III yr Engineering student. I've been ask 2 prepare a project on Java. Can u plz suggest me some topics ?   Hi friend... Java project topic with more information. 1. Asset Management 2. Shopping 

Java Beginners

java - Java Beginners
java  hi, give some material site to help me for study it, now i am pursuing mca4th sem , and give some expert id   Hi Friend, Please visit the following link: http://www.roseindia.net Here you will get lot 

Java Beginners

java - Java Beginners
. i want to add the value of varible "some" to string array; whenever i write add this value like "some" then some is added to string array.but i want to add value of 'some' value to string array.. becuase this is variable  Hi 

Java Beginners

java - Java Beginners
retrieve values(this value will change after some span of time) and print... minutes ( or some span of time interval)and retrieve values and print it in console.By using timer concept or thread or some other concepts.  Hi 

Java Beginners

java coding - Java Beginners
java coding  dear sir, i'm doing a java coding using with netbeans ide, so i'm trying to pass some text from one jframe to another jframe which is both are already opend on screen then how to do it? please send me 

Java Beginners

Java - Java Beginners
Java    Write a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread that generates prime numbers below 100,000 and writes 

Java Beginners

Java Project - Java Beginners
Java Project  Hey, thanks for everything your doing to make us better. Am trying to work on a project in java am in my first year doing software... as my problem. please send me some possible topics i could choose from. thank u 

Java Beginners

java project - Java Beginners
java project  Can u pls suggest me any ideas for my B.E project? It's urgent... Front end---Java Back end----Oracle IDE---------Netbeans5.5... games that i mostly did... I can develop a useful website... Pls suggest me some 

Java Tips and Examples

Beginners Java Tutorial
Beginners Java Tutorial     ... with the Java Programming language. This tutorial is for beginners, who wants to learn Java from scratch. In this beginners Java Tutorial you will learn how 

Java Beginners

java - Java Beginners
, finalize() method: if an object holds some non-java resources such as a file... are freed before an object is destroyed. To handle such situations, java provides... no significant action but may be overridden by a java class. It release the system 

Java Beginners

Java Program - Java Beginners
Java Program  My friend has a java project. He wanted to have java program that has 4 menu options which are (1)Add Data(from the user:last name... know what he'll do. He asked me to give some ideas but I can't give him the best 

Java Beginners

core java - Java Beginners
; Hi friend, Marker Interface : In java language programming... are implemented by the classes or their super classes in order to add some...://www.roseindia.net/java/master-java/interface.shtml Thanks 

Java Beginners

Java Leap Year Problem
Java Leap Year Problem  I need help with a writing a program in Java... of months to 12 and the number of days to 365. Then create a subclass named LeapYear. LeapYear's constructor overrides Years constructor and sets the number of days 

Java Beginners

JAVA - Java Beginners
JAVA  On loading of project read the particular file from the folder for user defined constants  Hi Friend, Please provide some more details. Thanks 

Java Beginners

java - Java Beginners
multiple classes)  Hi friend, Some points to be memember difference... methods. *)Abstract class contains the method defination of the some methods. *)Abstract classes are useful in a situation that Some general methods should 

Java Beginners

java class - Java Beginners
java class  hi sir, i have to compile two classes(eg:controller.java and client.java) and i have imported some packages in it using jar files(like Activation.jar and servlet.jar) when ever i am running in command promt 

Java Beginners

java programming - Java Beginners
java programming  hi!!! we have been allocated a project "remote admin"? but we dont knw how to proceed further?? what should we do first? plz...? if anyone knws some relevant stuff plz specify 

Java Beginners

java - Java Beginners
java  Write a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread that generates prime numbers below 100,000 and writes 

Java Beginners

java - Java Beginners
java  Hi sir .. Write a program in java for Password Generator that should ask from user in the format as given below. Please reply with output... of the password is entered Output of the password in some encoded form (any 

Java Beginners

java - Java Beginners
java  i just want to write program to add some n numbers it can be any 4digit or 5digir bt i nee get answer in 1 digit between 0to9 without using array using java.  public class AddSequentialNumbers { public static 

Java Beginners

Java - Java Beginners
Java Vector class example  Can you give me some vector class example in Java?  Hi friend,import java.io.*;import java.util.*;import java.util.Vector;import java.util.Iterator; public class EnumerateExam{ public static 

Java Beginners

java - Java Beginners
java  java programme to sort set of numbers in ascending order  Hi Friend, Sorting in java is very easy because of the use of Collections.sort() method. Here we are sending you the sample code to sort some numbers 

Java Beginners

JAVA - Java Beginners
methods in Java. 2. Design a thread-safe implementation of Queue class. Write... a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread 

Java Beginners

JAVA - Java Beginners
methods in Java. 2. Design a thread-safe implementation of Queue class. Write... a multi-threaded Java program to print all numbers below 100,000 that are both prime and fibonacci number (some examples are 2, 3, 5, 13, etc.). Design a thread 

Java Beginners

java - Java Beginners
java  sir, I have a function name as "getvalue".This function does retrieve values(this value will change after some span of time) and print... minutes ( or some span of time interval)and retrieve values and print 

Java Beginners

OOP - Java Beginners
); } For more information on Java visit to : http://www.roseindia.net/java/ http://www.roseindia.net/java/beginners/Construct.shtml Thanks... some error and remember it : 1.In class AA having a constructor : public int 

Java Beginners

java - Java Beginners
classes may implement some of the methods. Though you can?t instantiate an abstract.../java/master-java/java-object-oriented-language.shtml Thanks 

Java Beginners

hi - Java Beginners
For read more information http://www.roseindia.net/java/beginners... designed to work on the current object. Methods are always part of some class... information. http://www.roseindia.net/java/ Thanks.   Hi 

Java Beginners

arrays in java - Java Beginners
arrays in java  Hi All, I have two arrays. in this two array some name are same. I want to merge those arrays into single. But while merging I want to delete duplicate entries. How merge those arrays. Thanks, mln15584 

Java Beginners

java - Java Beginners
java  how to wtite a program that evaluates the series for some integer n input by the user where n! is a factorial of n  Hi Friend, Please clarify your problem. Do you want to print the factorial of a number 

Java Beginners

java - Java Beginners
java  hai I want coding for program which is having username,password.when the user enters the name and password,if another user wants to enter it will show the message that"Already some user is there".And if the same user 

Java Beginners

Java - Java Beginners
Java  Dear sir/madam Suppose i have a doc file. I need to print some text from source file which is red color text to output file. My question is "how i can sort that particular text in output file"? Regards 

Java Beginners

Oops Definition - Java Beginners
describing its state from any further modification by external component. In Java...  Hi Friend, Abstraction - The process of abstraction in Java is used 

Java Beginners

JAVA - Java Beginners
. Here the Java compiler knows about the exceptions thrown by some methods so... to 5 lines) for the following in JAVA, please. The answer is required very much urgent since I have to attend for the exam in JAVA. It would be very helpful 

Java Beginners

JAVA - Java Beginners
JAVA  Hello all, Can any one help me to write a java program...; it throws some error message. Can any one, please write a prigram that open... for more information http://www.roseindia.net/java/example/java/applet 

Java Beginners

java program - Java Beginners
A JAVA CODE.THANKS  Hi friend, Having some doubts on Your...java program  "Helo man&sir can you share or gave me a java code hope its ok?" a. Write a definition of the method ONE so that it returns the sum 

Advertisements Advertisements
 

 

 

DMCA.com