This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Customer[] myCust = new Customer[3] ; | |
| myCust[0] = new Customer(); | |
| myCust[1] = new Customer(); | |
| myCust[2] = new Customer(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class Customer{ | |
| private string _Name = ""; | |
| private int _gender = 0; | |
| public void setName(string Name) | |
| { | |
| this._Name= Name; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Customer[] myCust = new Customer[3] ; | |
| myCust[0] = new Customer(); | |
| myCust[1] = new Customer(); | |
| myCust[2] = new Customer(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <%! public long fact (long x) { | |
| if (x == 0) return 1; | |
| else return x * fact(x-1); | |
| } %> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Introduction to Programming HomeWork 6 Problems | |
| */ | |
| package javaclass; | |
| import java.util.Arrays; | |
| /** | |
| * @author Marvin DaCosta a.k.a(BornRiot) | |
| * | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| * Listing 2.5 in Introduction to Java by Liang. Program is used to convert Fahrenheit to Celcius | |
| */ | |
| package liangintrotojava9ed; | |
| import java.util.Scanner; | |
| /** | |
| * @author mdacosta | |
| * | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package liangintrotojava9ed; import java.util.Scanner; | |
| public class ComputeLoan { | |
| public static void main(String[] args) { | |
| // TODO Auto-generated method stub | |
| //Create a Scanner | |
| Scanner input = new Scanner(System.in); | |
| //Enter annual interest rate in percentage e.g. 7.25% | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package sample; | |
| //Show properties and events. | |
| import java.awt.*; | |
| import java.beans.*; | |
| public class IntrospectorDemo { | |
| public static void main(String[] args) { | |
| // TODO Auto-generated method stub | |
| try { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package sample; | |
| //A Bean information class. | |
| import java.beans.*; | |
| public class ColorsBeanInfo extends SimpleBeanInfo { | |
| public PropertyDescriptor[] getPropertyDescriptors() { | |
| try { | |
| PropertyDescriptor rectangular = new | |
| PropertyDescriptor("rectangular", Colors.class); | |
| PropertyDescriptor pd[] = {rectangular}; | |
| return pd; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package sample; | |
| //A simple Bean. | |
| import java.awt.*; | |
| import java.awt.event.*; | |
| import java.io.Serializable; | |
| public class Colors extends Canvas implements Serializable { | |
| transient private Color color; // not persistent | |
| private boolean rectangular; // is persistent | |
| public Colors() { | |
| addMouseListener(new MouseAdapter() { |