1. declare a long type variable --> long lng;
2. assign it to time --> lng=System.curr entTimeMillis() ;
--> System.out.prin tln(lng);
import java.util.*;
class time
{
public static void main (String[] arg){
long lng;
lng=System.curr entTimeMillis() ;
System.out.prin tln(lng);
...
User Profile
Collapse
-
-
U might have these problems
1. didn't throw IOException
2. Import IO package....Leave a comment:
-
check this code
Integer a = 42, b = 42;
Integer c = 3, d = 3;
System.out.prin tln( a == 42);
System.out.prin tln( a == b );
System.out.prin tln( c == 3 );
System.out.prin tln( c == d );...Leave a comment:
-
Hi
After looking ur code I found these errors
1. U have defined radious, area, circumference diameter as integer but it should be float type .
2. last if condition u provvide && it should be || .
3 . U are assigning in if statement U have to give "== "sign in steade of "="...Leave a comment:
-
A class implements the Cloneable interface to indicate to the Object.clone() method that it is legal for that method to make a field-for-field copy of instances of that class.
Attempts to clone instances that do not implement the Cloneable interface result in the exception CloneNotSupport edException being thrown....Leave a comment:
No activity results to display
Show More
Leave a comment: