Monday, May 30, 2016

The 2015/16 review of the season on SSNHQ on Tuesday



The 2015/16 review of the season on SSNHQ on Tuesday

Leicester claimed an unprecedented Premier League title earlier this month
Sky Sports News HQ will be reviewing the 2015/16 football season from top to bottom throughout the day on Tuesday.
We'll have guests in throughout the day to review the last 10 months of football, from Leicester's Premier League win through to the ups and downs across the Football League.
Ray Wilkins joins us to go through the Premier League, Dermot Gallagher will be in the studio to discuss the big refereeing decisions from the season, and we will also take a look at the campaign through the social media lens. 

Celtic were Scottish champions for a fifth straight season
Celtic's title win, Hibs' Scottish Cup victory and and Ross County's League Cup win will be analysed, as well as all the best stories from non League, with Cheltenham manager Gary Johnson on set.
We will look in-depth at Barcelona's second straight La Liga title win, and all the best statistics from England and the continent. 

Barcelona won a second straight La Liga title in Spain
A live blog will be run throughout the day on SkySports.com to round up the best action from the campaign, with a host of feature content to run alongside. 

                        Modals
Present                                   Past
Can                                        Could
Will                                       Would
Shall                                      Should
May                                       Might
Must
Ought to

http://www.skysports.com/football/news/11095/10299252/the-201516-review-of-the-season-on-ssnhq-on-tuesday

Monday, May 16, 2016

Tugas Dialog Bahasa Inggris



Dialogue

Moderator : Assalamualaikum Wr.Wb, Peace be upon you, and Allah mercy and blessings.
In the morning, fajrian visited cahyo house to talk about the home work. he request cahyo to join him to make a dialogue. what's will happen? let's we'll see.

Fajrian : Assalamualaikum cahyo
Cahyo : Wa’alaikumsalam, fajrian…please come in
Fajrian : Oke
Cahyo : Have a seat
Fajrian : Thank you, by the way, do you want to join me to make a english dialogue?
Cahyo : With pleasure, fajrian.
Fajrian : But we need more players to make a group. How about Yusup, Agung,and Rendy?
              They haven’t been gets a group.
Cahyo : You’re right fajrian. It would be more easily if we work together with them.
Fajrian : Absolutely, they will join to the group by us tomorrow.

Moderator : the next day, they discuss about to make a dialogue and invite their friends to join their group. But rendy and yusup aren’t present.

Cahyo : Hey agung, do you want to join our group?
Agung : Yes, I want to join your group
Cahyo : Do you have rendy’s number
Agung : Yes, I have
Fajrian : Agung, can you call rendy?
Agung : Yes, I can. Wait a minute…Hello rendy, this is agung. Do you want to join our group to make a  English dialogue?
Rendy : Hai agung, with my pleasure I will to join your group.
Agung : Oke thank you rendy, see you tomorrow.
Rendy : Oke you’re welcome, see you tomorrow.
Agung : Hey, he want to join our group. Do you have yusup’s number?
Fajrian : Yes, I have
Agung : Oke, you call him, please…
Fajrian : Oke, I will call him….Hello  yusup, this is fajrian, do you want to join our group to make a english dialogue?
Yusup : Hay fajrian, oke I will join to your group
Fajrian : Oke thanks, see you tomorrow.

Moderator : finally they have been completed to recruit their friends to join their group. the next day in the class…

Rendy : hey friends, when we start to make a english dialogue?
Yusup : we better make a english dialogue right now than tomorrow
Rendy : yes, you’re right yusup. We better hurry up.
Cahyo : this is your pen?
Agung : yes, it’s mine
Cahyo : my pen better than yours
Agung : oke lets use your pen to make a English dialogue

Moderator : finally they have been finished making a english dialogue and the next day they practice together in cahyo house.

Friday, October 23, 2015

FUNGSI EXTEND,SUPER,THIS PADA JAVA


  • FUNGSI EXTEND PADA JAVA
 
Extends pada java berfungsi untuk memanggil fungsi dari class lain, sehingga kita tidak perlu lagi membuat script yang sama pada class yang akan kita buat dengan class yang kita buat sebelumnya. Bingung, jadi begini saja, kita misalkan si joni, koko, dan joko berada di ruang A. kemudian si joreng ingin memanggil mereka bertiga sedangkan si joreng berada di ruang B, karena joreng kakinya sakit, jadi dia minta bantuan pada extends untuk memanggil mereka bertiga, sehingga mereka bisa datang ke ruan B.

public class orang{
String nama,alamat;
int umur;
public void setnama (String nama){
this.nama = nama;
}
public void setalamat (String alamat){
this.alamat = alamat;
}
public void setumur(int umur){
this.umur = umur;
}
public String getnama(){
return nama;
}
public String getalamat(){
return alamat;
}
public int getumur(){
return umur;
}
}
simpan file ini dengan nama orang.java, di sini fungsi extends belum di gunakan.
public class dosen extends orang {
String iddosen;
public void setiddosen(String iddosen){
this.iddosen = iddosen;
}
public String getiddosen(){
return iddosen;
}
}
simpan file ini dengan nama file dosen.java, di sini baru kita menggunakan fungsi extends untuk memanggil orang.java. sehingga dalam file dosen.java tidak menggunakan banyak script.
public class mhs extends orang {
String nim;
public void setnim(String nim){
this.nim = nim;
}
public String getnim(){
return nim;
}
}
untuk script ini simpan dengan file orang.java. semua script di atas itu bukan untuk di tampilkan. Di bawah ini adalah script untuk menampilkannya. jadi simpan dengan file tampilkan.java
//tampilan
public class tampilkan{
public static void main(String[] argh){
dosen apa = new dosen();
mhs apa2 = new mhs();
System.out.println(“===========Mahasiswa===========”);
apa2.nim = “11.11.496″;
apa2.nama = “Putra Siagian”;
apa2.alamat = “Tangerang”;
apa2.umur = 19;
System.out.println(“Nim : “+apa2.nim);
System.out.println(“Nama : “+apa2.nama);
System.out.println(“Alamat : “+apa2.alamat);
System.out.println(“Umur : “+apa2.umur);
System.out.println(“================================”);
System.out.println();
System.out.println(“=============Dosen==============”);
apa.iddosen = “9986785″;
apa.nama = “Leo”;
apa.alamat = “Tangerang”;
apa.umur = 26;
System.out.println(“IDDosen : “+apa.iddosen);
System.out.println(“Nama : “+apa.nama);
System.out.println(“Alamat : “+apa.alamat);
System.out.println(“Umur : “+apa.umur);
System.out.println(“================================”);
}
}
  • SUPER CLASS PADA JAVA

Subclass juga dapat memanggil constructor secara eksplisit dari superclass terdekat. Hal ini
dilakukan  dengan  pemanggil  construktor  super.  Pemanggil  constructor  super  dalam
constructor  dari  subclass  akan  menghasilkan  eksekusi  dari  superclass  constructor  yang
bersangkutan, berdasar dari argumen sebelumnya.

Sebagai contoh, pada contoh class sebelumnya. Person dan Student, kita tunjukkan contoh
dari pemanggil constructor super. Diberikan kode berikut untuk Student,
  
  public Student(){
  super( "SomeName", "SomeAddress" );  
  System.out.println("Inside Student:Constructor");  
  }

Kode  ini  memanggil  constructor  kedua  dari  superclass  terdekat  (yaitu  Person)  dan
mengeksekusinya. Contoh kode lain ditunjukkan sebagai berikut,

public Student(){
  super();  
  System.out.println("Inside Student:Constructor");  

  }


Kode  ini  memanggil  default  constructor  dari  superclass  terdekat  (yaitu  Person)  dan
mengeksekusinya. 

Ada beberapa hal yang harus diingat ketika menggunakan pemanggil constuktor super:

1.  Pemanggil super() HARUS DIJADIKAN PERNYATAAN PERTAMA DALAM constructor.
2.  Pemanggil super() hanya dapat digunakan dalam definisi constructor.
3.  Termasuk  constructor  this()  dan  pemanggil  super()  TIDAK  BOLEH  TERJADI  DALAM
constructor YANG SAMA.

Pemakaian  lain  dari  super  adalah  untuk  menunjuk  anggota  dari  superclass(seperti
reference this). Sebagai contoh,

  public Student()
{
  super.name = “somename”;
  super.address = “some address”;
  } 

  • FUNGSI THIS PADA JAVA

Kata kunci this dipergunakan pada pembuatan kelas dan digunakan untuk menyatakan objek sekarang. Untuk menghindari variabel yang sama antara variabel class dengan variabel property.
Contoh listing Program :
class Siswa2{
String nama;
String nim;

void isiData ( String nama,String nim) {
this.nama=nama;
this.nim=nim;
}

public static void main ( String [ ] args){
Siswa2 mahasiswa_itn = new Siswa2 ( );

mahasiswa_itn.isiData ("Aku","0818999");

System.out.println( "Nama : "+ mahasiswa_itn.nama);
System.out.println( "Nim : " + mahasiswa_itn.nim);
}
}