answersLogoWhite

0

Date d = new Date();

String s = d.toString(); //the s variable has the current date and time correct to a millisecond

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Is there a java that doesn't change your computer?

Try downloading the latest version of java from oracle. Actually Java is simply a language. It is a tool. It should not change your computer. Something is wrong with your computer if Java changes your computer. Usually it is not Java changing your computer but a virus latching onto Java. You must keep your antivirus software up to date and you must keep your Java up to date or you will have problems. If you have a MAC, apple has stopped supporting Java. Hackers are using it to hack into computers. Update it from Oracle or get rid of it.


What has the author Joe Weber written?

Joe Weber has written: 'Using Java 1.2' -- subject(s): Java (Computer program language) 'Using Java 1.1' -- subject(s): Java (Computer program language)


Runescape wont work on my Firefox?

try making sure that your java is fully up to date, and that it is compatible on your computer and your current version of Firefox.If the previous suggestion doesn't work, then try using another browser such as the internet explorer or Safari.


What benefit is java to you?

The language is platform independent. If I develop a program on my Windows computer using Java, the same program will work on a Mac or Linux/Unix computer without further modification. Java is also useful for developing applications on mobile devices, many of todays current cell phones use a Java based operating system.


How might one use the java subclass SimpleDateFormat?

One might use the Java subclass "SimpleDateFormat" when programming a Java application that needs to display the date. This would be then be used to show the user the current date in real time.


What has the author Jaime Nino written?

Jaime Nino has written: 'Introduction to Programming and OOD Java' 'An introduction to programming and object-oriented design using JAVA' -- subject(s): Java (Computer program language), Object-oriented programming (Computer science) 'Introduction to Programming and OOD Using Java'


Does using Java make a computer accessible to viruses?

sometimes, it all depends on what program you are using.


Does java script coding mean using it for Java programs only?

Java script coding is computer coding, many things require Java, and you need to have Java enabled to view these types of programs.


Program for finding the current workload of PC using java?

There is no way to do this in Java without using either JNI calls or executing an outside, platform-specific program.


How do you stop browser from exiting when using runescape?

Make sure your java is fully up to date, and lessen the process usage of the laptop/computer but shutting down other programs that are not necessary.


Can the processor of a computer system directly execute source programs written in Java?

No. Even using the Java Native Interface, code written in Java is always in a high-level language.


How do you know if you have java?

The best way to find out if your Java is up to date is to visit the Java website. You can then check the latest verison number, and compare it to what is already on your computer. You check in your programs and files. You can also choose to update, and if you have the current version it won't do it.