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
Rashid [163]
3 years ago
7

Define a public static method named s2f that takes two String arguments, the name of a file and some text. The method creates th

e file and writes the text to it. If all goes well the method returns true. If, however, either of its arguments are null or if there is any problem in creating or writin
Computers and Technology
1 answer:
frez [133]3 years ago
6 0

Answer:

Java solution (because only major programming language that has public static methods)

(import java.io.* before hand)

public static boolean s2f(String fileName, String text){

   try{

       PrintWriter out = new PrintWriter(new File(fileName));

       out.println(text);

       out.close();

       return true;

   }

   catch(Exception e){

       return false;

   }

}

You might be interested in
What is a data mining??
Nadusha1986 [10]
Data mining is the process in which large values of raw data are interpreted to extract something useful out of it. With the help of software, finding pattern using these large data is the main point.


Hope my answer would be a great help for you.    If you have more questions feel free to ask here at Brainly.
3 0
3 years ago
Allow the user to enter a series of temperatures in degrees Celsius (C) ter-
adoni [48]
The flow chart would go:

----------------------------
Start

Input C (Celsius)

IF C = -999 THEN END

Calculate F (Fahrenheit) using the formula

Output F

Goto next temperature (Input C)
----------------------------

The above needs tidying up and coding in the computer language you are using.
5 0
4 years ago
Match the term to the correct definition.
Sauron [17]
Correct Answer:
1. information processed or stored by the computer
data
2. two or more connected computers
network
3. a unique name that identifies an Internet site
URL
4. instructions that tell a computer what to do
Command
5 0
3 years ago
The "offset" between the viewfinder and the lens in compact cameras results in a problem called
boyakko [2]
The answer is Parallax.

5 0
4 years ago
What steps should you take if your harassed online​
AURORKA [14]
Tell an adult and report the person harassing you
8 0
3 years ago
Read 2 more answers
Other questions:
  • What happens when a Boolean expression is evaluated?
    7·1 answer
  • For this lab, youhave to write a programnamedseriesFunction.cthat prompts user to enter two values, x and n. Then it would use a
    11·1 answer
  • We will pass in 2 values, X and Y. You should calculate XY XY and output only the final result. You will probably know that XY X
    13·1 answer
  • what are the Technologies in regarding of communication technology? Please help me I'll rate you as brainliest!​
    13·1 answer
  • When two conductors are accidentally connected it is<br> called a
    6·1 answer
  • The I/O modules take care of data movement between main memory and a particular device interface.A. TrueB. False
    9·1 answer
  • Which changes the natural world? <br> technology <br> science <br> prototypes <br> feedback
    5·1 answer
  • Which is the first computer brought in nepal for the census of 2028 B.S​
    6·1 answer
  • What is the earliest age you can collect social security.
    7·1 answer
  • Fiscal policy includes each of the following except? 1) the money supply. 2) taxes. 3) government spending. 4) the automatic sta
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!