The project should read the list of programming language tutorials in from the d
ID: 647077 • Letter: T
Question
The project should read the list of programming language tutorials in from the data file, load the data into a Tutorial Website object array, sort the list, then writes the list to another files with selection sort and insertion sort alphabetically.(please write In java or better with NetBeans)
Input text file:
Java
The Java Tutorials
http://docs.oracle.com/javase/tutorial/
Python
Tutorialspoint Java tutorials
http://www.tutorialspoint.com/python/
Perl
Tutorialspoint Perl tutorials
http://www.tutorialspoint.com/perl/
C++
cplusplus.com C++ tutorials
http://www.cplusplus.com/doc/tutorial/
Output file should look like below:
Language Name / Website Description / Website URL
C++ / cplusplus.com C++ tutorials / http://www.cplusplus.com/doc/tutorial/
Python / Tutorialspoint Java tutorials / http://www.tutorialspoint.com/python/
Explanation / Answer
dataFile[] dataArray=new dataFile[10];
while(line=br.readLine()!=Null)
{if(j==0){
dataArray[i].language=line;}
if(j==1){
dataArray[i].website=line;}
if(j==2){
dataArray[i].url=line;}
if(j==2){j=0;i++;}
else{j++;}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.