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 partial class About : Page | |
{ | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
Button1.Click += SaveBtn_Click; | |
} | |
public void SaveBtn_Click(object sender, EventArgs e) | |
{ | |
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
import java.io.File; | |
import java.util.regex.Pattern; | |
public class Unit6 { | |
public static void main(String[] args) { | |
File dir = new File("/Users/eforth/Desktop"); | |
System.out.println("Does this path exits? : " + dir.exists()); | |
System.out.println("Is this path a directory? : " + dir.isDirectory()); |
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 Book { | |
private String isbn; | |
private String title; | |
private String edition; | |
private String categories; | |
private String author; | |
private String publisher; | |
public String getIsbn() { | |
return isbn; |
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
import java.util.Scanner; | |
public class Account implements PhoneTasks { | |
private double balance; | |
private double interestRate; | |
public Account(double balance, double interestRate) { | |
this.balance = balance; | |
this.interestRate = interestRate; |
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 Employee extends Person { | |
private String employeeNo; | |
private double salary; | |
public Employee(String firstName, String lastName, String employeeNo | |
, double salary) { | |
super(firstName, lastName); | |
this.employeeNo = employeeNo; | |
this.salary = salary; | |
} |
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 Player { | |
// class variable | |
public static int numOfplayers; | |
// instance variable | |
private String name; | |
// no-arg constructor | |
public Player() { numOfplayers++; } | |
// parameterized constructor |
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
create table cinemas ( | |
id int not null auto_increment, | |
name varchar(255) not null | |
); | |
alter table cinemas add constraint pk_cinemas primary key (id); | |
alter table cinemas add constraint uk_cinemas unique (name); | |
create table movies ( | |
imdb_code varchar(25) not null, |
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
<?php | |
$startOptions = array( | |
'options' => array( | |
'default' => date('Y-m-d', strtotime("this week")), // default value | |
'regexp'=>"/^\d{4}-\d{1,3}-\d{1,3}$/" // Y-m-d | |
), | |
); | |
$endOptions = array( |
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
import java.util.*; | |
public class Exercise0 { | |
static int classVar; // class variable with a default value of 0. Exercise0.classVar | |
int instanceVar; // instance varaible with a default value of 0 | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); |
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
<?php | |
//controller | |
class EducationController extends Controller { | |
public function show() { | |
$secondaryRecords = Secondary_ed::all(); | |
$tertiaryRecords = Tertiary_ed::all(); | |
return view('EducationPage', [ |
NewerOlder