SlideShare a Scribd company logo
Comments added...
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
/**
*
* @author prmsh
*/
public class SaveMatrix {
public static void main(String args[]) {
//declaring matrix..
String[][] data = new String[4][4];
int row = 0;
// opening and reading file
File file = new File("matrix.txt");
try {
Scanner sc = new Scanner(file);
while (sc.hasNextLine()) {
String line = sc.nextLine();
//splitting each row by spaces
String[] lineArray = line.split(" ");
//storing into array
for(int i=0; i
Solution
Comments added...
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
/**
*
* @author prmsh
*/
public class SaveMatrix {
public static void main(String args[]) {
//declaring matrix..
String[][] data = new String[4][4];
int row = 0;
// opening and reading file
File file = new File("matrix.txt");
try {
Scanner sc = new Scanner(file);
while (sc.hasNextLine()) {
String line = sc.nextLine();
//splitting each row by spaces
String[] lineArray = line.split(" ");
//storing into array
for(int i=0; i

More Related Content

Similar to Comments added... import java.io.File; import java.io.FileNotF.pdf

File Handling.pptx
File Handling.pptxFile Handling.pptx
File Handling.pptx
PragatiSutar4
 
Lab4
Lab4Lab4
Jedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io StreamsJedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io StreamsDon Bosco BSIT
 
Hi, I need help with a java programming project. specifically practi.pdf
Hi, I need help with a java programming project. specifically practi.pdfHi, I need help with a java programming project. specifically practi.pdf
Hi, I need help with a java programming project. specifically practi.pdf
PRATIKSINHA7304
 
Java IO Streams V4
Java IO Streams V4Java IO Streams V4
Java IO Streams V4
Sunil OS
 
Java căn bản - Chapter12
Java căn bản - Chapter12Java căn bản - Chapter12
Java căn bản - Chapter12Vince Vo
 
Chapter 12 - File Input and Output
Chapter 12 - File Input and OutputChapter 12 - File Input and Output
Chapter 12 - File Input and Output
Eduardo Bergavera
 
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdfplease navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
aioils
 
Code red SUM
Code red SUMCode red SUM
Code red SUM
Shumail Haider
 
Input output files in java
Input output files in javaInput output files in java
Input output files in java
Kavitha713564
 
In Java- Input is from a file- The input is all doubles- You are to in.pdf
In Java- Input is from a file- The input is all doubles- You are to in.pdfIn Java- Input is from a file- The input is all doubles- You are to in.pdf
In Java- Input is from a file- The input is all doubles- You are to in.pdf
ColinjSWDavidsonn
 
Input is from a file- The input is all doubles- You are to input these.pdf
Input is from a file- The input is all doubles- You are to input these.pdfInput is from a file- The input is all doubles- You are to input these.pdf
Input is from a file- The input is all doubles- You are to input these.pdf
ColinjSWDavidsonn
 
Session 23 - JDBC
Session 23 - JDBCSession 23 - JDBC
Session 23 - JDBC
PawanMM
 
Chapter 6 Java IO File
Chapter 6 Java IO FileChapter 6 Java IO File
Chapter 6 Java IO File
Khirulnizam Abd Rahman
 
Core Java
Core JavaCore Java
Core Java
Khasim Saheb
 
Core java concepts
Core java concepts Core java concepts
Core java concepts
javeed_mhd
 
srgoc
srgocsrgoc
Complete the following Java code such that it opens a file named Fruit.docx
Complete the following Java code such that it opens a file named Fruit.docxComplete the following Java code such that it opens a file named Fruit.docx
Complete the following Java code such that it opens a file named Fruit.docx
ljohn878
 
5. Ввод-вывод, доступ к файловой системе
5. Ввод-вывод, доступ к файловой системе5. Ввод-вывод, доступ к файловой системе
5. Ввод-вывод, доступ к файловой системе
DEVTYPE
 

Similar to Comments added... import java.io.File; import java.io.FileNotF.pdf (20)

File Handling.pptx
File Handling.pptxFile Handling.pptx
File Handling.pptx
 
Lab4
Lab4Lab4
Lab4
 
Jedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io StreamsJedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io Streams
 
Hi, I need help with a java programming project. specifically practi.pdf
Hi, I need help with a java programming project. specifically practi.pdfHi, I need help with a java programming project. specifically practi.pdf
Hi, I need help with a java programming project. specifically practi.pdf
 
Java IO Streams V4
Java IO Streams V4Java IO Streams V4
Java IO Streams V4
 
Java căn bản - Chapter12
Java căn bản - Chapter12Java căn bản - Chapter12
Java căn bản - Chapter12
 
Chapter 12 - File Input and Output
Chapter 12 - File Input and OutputChapter 12 - File Input and Output
Chapter 12 - File Input and Output
 
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdfplease navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
 
Code red SUM
Code red SUMCode red SUM
Code red SUM
 
Bhaloo
BhalooBhaloo
Bhaloo
 
Input output files in java
Input output files in javaInput output files in java
Input output files in java
 
In Java- Input is from a file- The input is all doubles- You are to in.pdf
In Java- Input is from a file- The input is all doubles- You are to in.pdfIn Java- Input is from a file- The input is all doubles- You are to in.pdf
In Java- Input is from a file- The input is all doubles- You are to in.pdf
 
Input is from a file- The input is all doubles- You are to input these.pdf
Input is from a file- The input is all doubles- You are to input these.pdfInput is from a file- The input is all doubles- You are to input these.pdf
Input is from a file- The input is all doubles- You are to input these.pdf
 
Session 23 - JDBC
Session 23 - JDBCSession 23 - JDBC
Session 23 - JDBC
 
Chapter 6 Java IO File
Chapter 6 Java IO FileChapter 6 Java IO File
Chapter 6 Java IO File
 
Core Java
Core JavaCore Java
Core Java
 
Core java concepts
Core java concepts Core java concepts
Core java concepts
 
srgoc
srgocsrgoc
srgoc
 
Complete the following Java code such that it opens a file named Fruit.docx
Complete the following Java code such that it opens a file named Fruit.docxComplete the following Java code such that it opens a file named Fruit.docx
Complete the following Java code such that it opens a file named Fruit.docx
 
5. Ввод-вывод, доступ к файловой системе
5. Ввод-вывод, доступ к файловой системе5. Ввод-вывод, доступ к файловой системе
5. Ввод-вывод, доступ к файловой системе
 

More from anwarfoot

0 to -1 Solution 0 to -1 .pdf
  0 to -1  Solution  0 to -1  .pdf  0 to -1  Solution  0 to -1  .pdf
0 to -1 Solution 0 to -1 .pdf
anwarfoot
 
phosphate group and deoxyribose The groups are .pdf
                     phosphate group and deoxyribose  The groups are  .pdf                     phosphate group and deoxyribose  The groups are  .pdf
phosphate group and deoxyribose The groups are .pdf
anwarfoot
 
Osmosis .pdf
                     Osmosis                                      .pdf                     Osmosis                                      .pdf
Osmosis .pdf
anwarfoot
 
in case of solid oxygen the atoms of oxygen are s.pdf
                     in case of solid oxygen the atoms of oxygen are s.pdf                     in case of solid oxygen the atoms of oxygen are s.pdf
in case of solid oxygen the atoms of oxygen are s.pdf
anwarfoot
 
Yeast is a microorganism and doesnt itself rise.pdf
                     Yeast is a microorganism and doesnt itself rise.pdf                     Yeast is a microorganism and doesnt itself rise.pdf
Yeast is a microorganism and doesnt itself rise.pdf
anwarfoot
 
First, lets analyze what each component of the .pdf
                     First, lets analyze what each component of the .pdf                     First, lets analyze what each component of the .pdf
First, lets analyze what each component of the .pdf
anwarfoot
 
when they reach equilibrium te cell potential is .pdf
                     when they reach equilibrium te cell potential is .pdf                     when they reach equilibrium te cell potential is .pdf
when they reach equilibrium te cell potential is .pdf
anwarfoot
 
E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf
                     E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf                     E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf
E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf
anwarfoot
 
D) Not B) because Cl-Benzene bond develops a doub.pdf
                     D) Not B) because Cl-Benzene bond develops a doub.pdf                     D) Not B) because Cl-Benzene bond develops a doub.pdf
D) Not B) because Cl-Benzene bond develops a doub.pdf
anwarfoot
 
YesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdf
YesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdfYesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdf
YesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdf
anwarfoot
 
We know that from Nernst Equation ,E o cell = E o – ( 0.059 n ) .pdf
We know that from Nernst Equation ,E o cell = E o – ( 0.059  n ) .pdfWe know that from Nernst Equation ,E o cell = E o – ( 0.059  n ) .pdf
We know that from Nernst Equation ,E o cell = E o – ( 0.059 n ) .pdf
anwarfoot
 
lower.. think about it.. take a straw draw a line.pdf
                     lower.. think about it.. take a straw draw a line.pdf                     lower.. think about it.. take a straw draw a line.pdf
lower.. think about it.. take a straw draw a line.pdf
anwarfoot
 
r= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdf
r= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdfr= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdf
r= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdf
anwarfoot
 
From left to right iodocyclopropane; 1-bromo-3-m.pdf
                     From left to right iodocyclopropane; 1-bromo-3-m.pdf                     From left to right iodocyclopropane; 1-bromo-3-m.pdf
From left to right iodocyclopropane; 1-bromo-3-m.pdf
anwarfoot
 
For inorganic compounds Chemical properties remai.pdf
                     For inorganic compounds Chemical properties remai.pdf                     For inorganic compounds Chemical properties remai.pdf
For inorganic compounds Chemical properties remai.pdf
anwarfoot
 
n=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdf
n=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdfn=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdf
n=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdf
anwarfoot
 
Over forty interstellar molecules have been found, ranging from simp.pdf
Over forty interstellar molecules have been found, ranging from simp.pdfOver forty interstellar molecules have been found, ranging from simp.pdf
Over forty interstellar molecules have been found, ranging from simp.pdf
anwarfoot
 
One of the four prominent symptoms of typhoid is coated tongue. Even.pdf
One of the four prominent symptoms of typhoid is coated tongue. Even.pdfOne of the four prominent symptoms of typhoid is coated tongue. Even.pdf
One of the four prominent symptoms of typhoid is coated tongue. Even.pdf
anwarfoot
 
Meselson and Stahl in 1957 gave experimental evidence that each DNA .pdf
Meselson and Stahl in 1957 gave experimental evidence that each DNA .pdfMeselson and Stahl in 1957 gave experimental evidence that each DNA .pdf
Meselson and Stahl in 1957 gave experimental evidence that each DNA .pdf
anwarfoot
 
Introduction One of the key goals for the Windows Subsystem for Li.pdf
Introduction One of the key goals for the Windows Subsystem for Li.pdfIntroduction One of the key goals for the Windows Subsystem for Li.pdf
Introduction One of the key goals for the Windows Subsystem for Li.pdf
anwarfoot
 

More from anwarfoot (20)

0 to -1 Solution 0 to -1 .pdf
  0 to -1  Solution  0 to -1  .pdf  0 to -1  Solution  0 to -1  .pdf
0 to -1 Solution 0 to -1 .pdf
 
phosphate group and deoxyribose The groups are .pdf
                     phosphate group and deoxyribose  The groups are  .pdf                     phosphate group and deoxyribose  The groups are  .pdf
phosphate group and deoxyribose The groups are .pdf
 
Osmosis .pdf
                     Osmosis                                      .pdf                     Osmosis                                      .pdf
Osmosis .pdf
 
in case of solid oxygen the atoms of oxygen are s.pdf
                     in case of solid oxygen the atoms of oxygen are s.pdf                     in case of solid oxygen the atoms of oxygen are s.pdf
in case of solid oxygen the atoms of oxygen are s.pdf
 
Yeast is a microorganism and doesnt itself rise.pdf
                     Yeast is a microorganism and doesnt itself rise.pdf                     Yeast is a microorganism and doesnt itself rise.pdf
Yeast is a microorganism and doesnt itself rise.pdf
 
First, lets analyze what each component of the .pdf
                     First, lets analyze what each component of the .pdf                     First, lets analyze what each component of the .pdf
First, lets analyze what each component of the .pdf
 
when they reach equilibrium te cell potential is .pdf
                     when they reach equilibrium te cell potential is .pdf                     when they reach equilibrium te cell potential is .pdf
when they reach equilibrium te cell potential is .pdf
 
E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf
                     E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf                     E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf
E° = 0.07 - (0.14)     = 0.21 V 2UO22+(aq) + Sn(s.pdf
 
D) Not B) because Cl-Benzene bond develops a doub.pdf
                     D) Not B) because Cl-Benzene bond develops a doub.pdf                     D) Not B) because Cl-Benzene bond develops a doub.pdf
D) Not B) because Cl-Benzene bond develops a doub.pdf
 
YesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdf
YesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdfYesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdf
YesBecause (1,1) is missing, it is not reflexive though (3,3) (2,2.pdf
 
We know that from Nernst Equation ,E o cell = E o – ( 0.059 n ) .pdf
We know that from Nernst Equation ,E o cell = E o – ( 0.059  n ) .pdfWe know that from Nernst Equation ,E o cell = E o – ( 0.059  n ) .pdf
We know that from Nernst Equation ,E o cell = E o – ( 0.059 n ) .pdf
 
lower.. think about it.. take a straw draw a line.pdf
                     lower.. think about it.. take a straw draw a line.pdf                     lower.. think about it.. take a straw draw a line.pdf
lower.. think about it.. take a straw draw a line.pdf
 
r= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdf
r= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdfr= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdf
r= 1+ sin theta drd = cos = 0Therefore = 2Solutionr=.pdf
 
From left to right iodocyclopropane; 1-bromo-3-m.pdf
                     From left to right iodocyclopropane; 1-bromo-3-m.pdf                     From left to right iodocyclopropane; 1-bromo-3-m.pdf
From left to right iodocyclopropane; 1-bromo-3-m.pdf
 
For inorganic compounds Chemical properties remai.pdf
                     For inorganic compounds Chemical properties remai.pdf                     For inorganic compounds Chemical properties remai.pdf
For inorganic compounds Chemical properties remai.pdf
 
n=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdf
n=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdfn=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdf
n=4 l=3 we know that L=h2(l(l+1))L=3.710-34Solutionn.pdf
 
Over forty interstellar molecules have been found, ranging from simp.pdf
Over forty interstellar molecules have been found, ranging from simp.pdfOver forty interstellar molecules have been found, ranging from simp.pdf
Over forty interstellar molecules have been found, ranging from simp.pdf
 
One of the four prominent symptoms of typhoid is coated tongue. Even.pdf
One of the four prominent symptoms of typhoid is coated tongue. Even.pdfOne of the four prominent symptoms of typhoid is coated tongue. Even.pdf
One of the four prominent symptoms of typhoid is coated tongue. Even.pdf
 
Meselson and Stahl in 1957 gave experimental evidence that each DNA .pdf
Meselson and Stahl in 1957 gave experimental evidence that each DNA .pdfMeselson and Stahl in 1957 gave experimental evidence that each DNA .pdf
Meselson and Stahl in 1957 gave experimental evidence that each DNA .pdf
 
Introduction One of the key goals for the Windows Subsystem for Li.pdf
Introduction One of the key goals for the Windows Subsystem for Li.pdfIntroduction One of the key goals for the Windows Subsystem for Li.pdf
Introduction One of the key goals for the Windows Subsystem for Li.pdf
 

Recently uploaded

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 

Comments added... import java.io.File; import java.io.FileNotF.pdf

  • 1. Comments added... import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; /** * * @author prmsh */ public class SaveMatrix { public static void main(String args[]) { //declaring matrix.. String[][] data = new String[4][4]; int row = 0; // opening and reading file File file = new File("matrix.txt"); try { Scanner sc = new Scanner(file); while (sc.hasNextLine()) { String line = sc.nextLine(); //splitting each row by spaces String[] lineArray = line.split(" "); //storing into array for(int i=0; i Solution Comments added... import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; /** *
  • 2. * @author prmsh */ public class SaveMatrix { public static void main(String args[]) { //declaring matrix.. String[][] data = new String[4][4]; int row = 0; // opening and reading file File file = new File("matrix.txt"); try { Scanner sc = new Scanner(file); while (sc.hasNextLine()) { String line = sc.nextLine(); //splitting each row by spaces String[] lineArray = line.split(" "); //storing into array for(int i=0; i