DQ 2 Week 7


I need this assignment done & done CORRECTLY as the assignment states in it’s directions.  If you can complete this assignment, do it correctly AND FOR THE PRICE I POSTED IT FOR, then let me know ASAP.  I need this done from the info that is posted in this assignment.

 

Post your code as an OOP example. Please pay attention here because structured programming and OOP are very different. This week we are learning about Object Oriented Programming, post pseudocode or code examples showing attributes, methods and classes. Some students will have a Java class in the future so please start writing Java examples 🙂

 

The info that you need to complete this assignment is below:

 

Table table = Database.open(new File(“MyDB.db”)).getTable(“MyTable”); // this line opens the database file and gets the table from it named “MyTable”

// Now for each row of the table, iterate thru all the rows and show the content.

for(Row row : table) 

{

System.out.println(“Column ‘a’ has value: ” + row.get(“a”));

}

 File myFile = new File( “MyFile.txt” ); // create a file object that points to the location of the file.

    if (myFile.exists() && myFile.length() != 0)  // check to see if file exists or not

        

        {

            BufferedReader in = new BufferedReader(new FileReader( myFile )); // create a reader object that will help in reading the data from file.

            String lastName, firstName, phoneNumber;

            // read the data line by line

   firstName = in.readLine(); 

            lastName = in.readLine();

            phoneNumber = in.readLine();

        }

If you need assistance with writing your assignment, essay, our professional assignments / essay writing service is here to help!

Order Now