Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #55.0K
~484 People Reached
Favorite Forums
Favorite Tags
java x 3

3 Posted Topics

Member Avatar for caps_lock

i see two issues: 1) First u r calling listRoots, tht must print C:\ 2) Secondly, u r not trying to get the iterate through the list of files that u got... Let see ur code: File[] filesOnComputer = File.listRoots(); this part shall give u the root of the directory …

Member Avatar for caps_lock
0
161
Member Avatar for dhm.shyara

Hope this helps: package testFiles; import java.util.*; import java.text.SimpleDateFormat; import java.text.DateFormat; public class DayName { public static void main(String[] args) { Date date1 = (new GregorianCalendar (1984, Calendar.FEBRUARY, 13)).getTime(); DateFormat f = new SimpleDateFormat("EEEE"); try { System.out.println ("1984-3-13 was a " + f.format(date1)); } catch(Exception e) { e.printStackTrace(); } } …

Member Avatar for masijade
0
97
Member Avatar for caps_lock

U must get the File object from the arraylist and then carry out any other operation on them. Somethg like this: for(int i=0; i<arrayList.size();i++){ File n= (File)arrayList.get(i); System.out.println(n.length()); } Hope this helps

Member Avatar for caps_lock
0
226

The End.