Commit 74b615e6 authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

4queries.sql

0 → 100644
+8 −0
Changes for 4queries.sql: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
SELECT last_name, salary FROM employee ORDER BY salary; 

SELECT last_name, salary FROM employee ORDER BY salary DESC; 

SELECT last_name, department_id FROM employee ORDER BY department_id;

SELECT first_name || ' ' || last_name, salary 
  FROM employee ORDER BY last_name;

9781565926745

0 → 120000
+1 −0
Changes for 9781565926745: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
9781565926745
 No newline at end of file

JFile.java

0 → 100644
+39 −0
Changes for JFile.java: 39 added lines, 0 removed lines.
Original line number Diff line number Diff line
// This file isn't referenced in the book, but you will
// probably want it!

import java.io.File;

public class JFile {
 
   public static int tVal () { return 1; };  // True Value
   public static int fVal () { return 0; };  // False Value 
   public static String listDelimiter () { return "|"; };  // File Delimiter 

   // Return the length of the file
   public static long length (String fileName) {
      File myFile = new File (fileName);
      return myFile.length();
      }

   // Delete a file
   public static int delete (String fileName) {
      File myFile = new File (fileName);
      boolean retval = myFile.delete();
      if (retval) return tVal(); else return fVal();
      }

   // Return a list of file names delimited by "|"
   public static String dirContents (String dir) {
      File myDir = new File (dir);
      String[] filesList = myDir.list();
      String contents = new String();
      for (int i = 0; i < filesList.length; i++) 
         contents = contents + listDelimiter() + filesList[i];
      return contents;
      }

   /*
   || Lots more classes...
   */
             
}
 No newline at end of file
+2.4 MiB

File added.

No diff preview for this file type.

README.ERRATA.html

0 → 100755
+9 −0
Changes for README.ERRATA.html: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
<HTML>
<BODY>

The code in these example archives may not match the examples in the latest print copy of the book. Please check 
<A HREF="http://www.oreilly.com/catalog/ordevworkbook/errata/"><B>the posted errata</B></A> for discrepancies between the book and online errata.  We 
apologize for the inconvenience.

</BODY>
</HTML>
Loading