Question: public class File { public static void main(String args[])throws java.io.FileNotFoundException{ java.io.File file = new java.io.File(Ahmad Alsubhi.txt); java.io.PrintWriter output = new java.io.PrintWriter(file); output.print(Name : Ahmad Al

public class File {

public static void main(String args[])throws java.io.FileNotFoundException{

java.io.File file = new java.io.File("Ahmad Alsubhi.txt");

java.io.PrintWriter output = new java.io.PrintWriter(file);

output.print("Name : Ahmad Al subhi Stuent Id : 2040042 Grades : 93 Database 90 Advanced Programmi System Analysis 90"); output.close();

java.util.Scanner input = new java.util.Scanner(file); String name = input.next(); while(input.hasNextLine()){ name +=input.nextLine() + " "; }

System.out.print(name);

input.close();

} }

Question 1 :

Write a new version of the previous java code that allows introducing the file content by using a graphical interface.

Please Help

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!