1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nasty-shy [4]
2 years ago
8

Create a file using any word processing program or text editor. Write an application that displays the files, name, containing f

older, size, and time of last modification. Save the file as FileStatisits.java
Computers and Technology
1 answer:
MArishka [77]2 years ago
4 0

Answer:

below is a Shell I have ;

1.Import java.nio.file.*;

2.Import java.nio.file attribute.*;

3.Import java.10 Exception;

4.public class FileStatistics

5.{

6.public static void main(string []args)

7.{

8.path file=

9.

paths.get("C:\\Java\\chapter.13\\TestData.txt")

10.try

11.{

12.\\declare count and then display path, file, name and folder name.

13.

14.

15.

16.\\declare a BasicFileAttributes object, then add statements to display the file's size and creation time.

17.

18.}

19.

20.catch (10 Exception e)

21.{

22.\\add display 10 Exception

23.

24.}

25.}

You might be interested in
If you want an app to reach the largest possible audience, which two platforms should you use?
Papessa [141]

Android Studio for Android, and Xcode for Apple devices.

6 0
3 years ago
The following code is intended to calculate the sum of the first five positive odd integers. int sum = 0, k; for (k = 1; k <=
goldfiish [28.3K]
Calculate the sum of the first 5 positive odd integers: Let's do this in our head first, so we can check if our code is right or not!

The first positive 5 odd integers are: 1, 3, 5, 7, 9
Sum these to: 25

int sum = 0, k; <------These just declare our variables, telling the program 'Hey, I'm going to use 'sum' and 'k' to store data.

for (k = 1; <---We're going to repeat the following code, and we're starting at 1
k <= 10; <---- We're going to continue to repeat until we greater than 10.
k += 2) <------ Every time we do a loop, we're going to add 2.

{ sum += k; } <---- We're going to increase the number inside "sum" by the number inside "k"

Let's run this and see what happens. Remember, we keep going until we hit more than 10.

Round 0: k = nothing, sum = 0 (before we start the loop)
Round 1: k = 1, sum = 1
Round 2: k = 3, sum = 1+3 or 4
Round 3: k = 5, sum = 4 + 5 or 9
Round 4: k = 7, sum = 9 + 7 = 16
Round 5: k = 9, sum = 16 + 9 = 25
Round 6: k = 11, sum = 25 + 11 = 36

Well, we can tell here that round 5 was correct, but round 6 is not correct. And our loop condition says <=10, which means we have to do Round 6.

This means we did it one too many times. Our ending condition should be <10, instead of <=10. 

Option B


5 0
3 years ago
A.)navigate
Vaselesa [24]

Answer:

start with what you know

Explanation:

you can learn a lot from it

7 0
3 years ago
Discuss the three different software applications of Microsoft that you have leaned in this class (Word, PowerPoint and Excel).
sammy [17]

Answer:

ok!

Explanation:

Word is more for writing documents and letters, PowerPoint is used for presentations for a class work etc. Excel is a handy software that can be used to store and organize many data sets. Using its features and formulas, you can also use the tool to make sense of your data. For example, you could use a spreadsheet to track data and automatically see sums averages and totals.

7 0
3 years ago
A database planner names a field “Organic ingredients_3”. Why would this name Create possible problems in programming?
o-na [289]

Answer:

I think the answer is 2.

hope it will help you

4 0
3 years ago
Read 2 more answers
Other questions:
  • How to double print ona printer that doesnt allow t
    11·1 answer
  • In a fully underwritten offering a firm sells 1 million shares of stock through a fully underwritten offering. Their banker char
    10·1 answer
  • When you cut and then paste a file, what are you doing?
    7·2 answers
  • Which of the following is another type of brake system used in trucks
    5·1 answer
  • When Google created its China-based search engine www..cn, they did not foresee eventually abandoning it because of censorship i
    12·1 answer
  • A-1 grdening supply is preparing a reprt to hand out to the customerez in pointes form only.why should the reprts writers avoid
    9·2 answers
  • Helppp plzz ajjsndndbsskdjf​
    11·1 answer
  • Before entering an intersection, the safest searching process is to search ________. right, left, right, center left, center, ri
    5·1 answer
  • I know nothing abt computers
    14·1 answer
  • Write a function assoc_list(l) that, given a list l, returns a list of tuples where the first integer represents the element of
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!