aspose file tools*
The moose likes Beginning Java and the fly likes please send me the answer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "please send me the answer" Watch "please send me the answer" New topic
Author

please send me the answer

praveen kumar tummala
Greenhorn

Joined: Mar 03, 2006
Posts: 8
import java.util.*;
import java.io.*;
public class dateandtime extends Thread
{
long a;
public void run()
{
while(true)
{
try{
Date dt=new Date();
System.out.println("date and time is:"+dt);
Thread.sleep(1000);
}
catch(Exception e)
{
}
}
}
public static void main(String[] args)
{
dateandtime d=new dateandtime();
d.setPriority(7);
d.start();
}
}

here time and date is coming in line by line

how to print the date and time in one line in command prompt with time is changing.....

and also

how to convert java to .exe in written reply in message

and also

how to break the infinite loop in editplus

please send me thank you
[ March 03, 2006: Message edited by: praveen kumar tummala ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
The principle of this forum is to help you find the solution to your own problems.
First attempt the problem yourself - explain where you are having difficulties in understanding and we will help you. You may post portions of your code here (between [C0DE][/C0DE] brackets) and any compiler messages you do not understand.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
You should also read http://faq.javaranch.com/view?UseAMeaningfulSubjectLine - having to threads with the same subject, but totally different content in the same forum is very confusing.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
 
subject: please send me the answer
 
Similar Threads
ques on time/duration fields from db file
Best Way to parse a string to a unexpectable Date Format
OVERWRITING OBJECTS IN AN ARRAY LIST HELP PLEASE
Problems with custom xsd:dateTime conversion
Date Conversion query