<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>all about College</title>
	<atom:link href="http://triasmara.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://triasmara.wordpress.com</link>
	<description>silahkan ambil,sebarkan dan rasakan</description>
	<lastBuildDate>Tue, 24 Nov 2009 09:37:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='triasmara.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f766c3c8993fa70b0744cb0c0a50d3e6?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>all about College</title>
		<link>http://triasmara.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://triasmara.wordpress.com/osd.xml" title="all about College" />
	<atom:link rel='hub' href='http://triasmara.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Analitycal Hierarki Process</title>
		<link>http://triasmara.wordpress.com/2009/11/24/analitycal-hierarki-process/</link>
		<comments>http://triasmara.wordpress.com/2009/11/24/analitycal-hierarki-process/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 09:34:35 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[Kuliah]]></category>
		<category><![CDATA[Sistem Pendukung Keputusan]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=114</guid>
		<description><![CDATA[nalytic Hierarchy process (AHP) ialah salah satu dari dua cara pembobotan dalam DSS selain metode pembobotan secara langsung (direct weighting). AHP dikembangkan oleh seorang ahli matematika thomas saaty pada tahun 1970an. AHP merupakan sistem pembuat keputusan dengan menggunakan model matematis. AHP membantu dalam menentukan prioritas dari beberapa kriteria dengan melakukan analisa perbandingan berpasangan dari masing-masing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=114&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>nalytic Hierarchy process (AHP) ialah salah satu dari dua cara pembobotan dalam DSS selain metode pembobotan secara langsung (direct weighting). AHP dikembangkan oleh seorang ahli matematika thomas saaty pada tahun 1970an. AHP merupakan sistem pembuat keputusan dengan menggunakan model matematis. AHP membantu dalam menentukan prioritas dari beberapa kriteria dengan melakukan analisa perbandingan berpasangan dari masing-masing kriteria. Metode ini adalah sebuah kerangka untuk mengambil keputusan dengan efektif atas persoalan yang kompleks dengan menyerdehanakan dan mempercepat proses pengambilan keputusan dengan memecahkan permasalahan tersebut kedalam bagian – bagiannya, menata bagian atau variabel ini dalam suatu susunan hierarki, memberi nilai numerik pada pertimbangan subjektif tentang pentingnya tiap variabel dan mensitesis berbagai pertimbangan ini unutuk mempengaruhi hasil dari situasi tersebut. Metode ini menggabungkan kekuatan antara perasaan dan logikayang berhubungan dengan<!--http://www.4shared.com/file/158619628/16c0e775/paper_AHP.html--></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=114&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/11/24/analitycal-hierarki-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
		<item>
		<title>Permasalahan Transportasi dengan Solver (MS excel)</title>
		<link>http://triasmara.wordpress.com/2009/11/24/permasalahan-transportasi-dengan-solver-ms-excel/</link>
		<comments>http://triasmara.wordpress.com/2009/11/24/permasalahan-transportasi-dengan-solver-ms-excel/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 09:29:49 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[Kuliah]]></category>
		<category><![CDATA[Riset Operasi]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=111</guid>
		<description><![CDATA[ni saya kasih link buat contoh jawaban peneyelasian permaslahan transportasi Dalam Riset Operasi.silahkan Diunduh dan tinggalkan comment<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=111&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ni saya kasih link buat contoh jawaban peneyelasian permaslahan transportasi Dalam Riset Operasi.silahkan Diunduh dan tinggalkan comment<a href="http://www.4shared.com/file/158619629/61c7d7e3/RO_solver.html"></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=111&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/11/24/permasalahan-transportasi-dengan-solver-ms-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
		<item>
		<title>Sistem Pendukung Keputusan (Jawaban Kuiss)</title>
		<link>http://triasmara.wordpress.com/2009/11/24/sistem-pendukung-keputusan-jawaban-kuiss/</link>
		<comments>http://triasmara.wordpress.com/2009/11/24/sistem-pendukung-keputusan-jawaban-kuiss/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 09:23:19 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[Kuliah]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=109</guid>
		<description><![CDATA[Jawab : QUIS 1 SPK, 25 Oktober 2009 6. Jelaskan proses pengambilan keputusan dalam bisnis ! Jawabannya adalah : 1. Mengenali Masalah: Pihak manajemen menyadari adanya beberapa masalah yang sedang atau mungkin akan terjadi oleh karena itu suatu tindakan tertentu harus diambil sesegera mungkin. 2. Mencari Informasi: Pengumpulan berbagai informasi yang berhubungan dengan masalah yang [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=109&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Jawab : QUIS 1 SPK, 25 Oktober 2009 </p>
<p>6. Jelaskan proses pengambilan keputusan dalam bisnis !<br />
Jawabannya adalah :<br />
1.   Mengenali Masalah: Pihak manajemen menyadari adanya beberapa masalah yang<br />
sedang  atau mungkin  akan  terjadi  oleh  karena  itu  suatu  tindakan  tertentu  harus<br />
diambil sesegera mungkin.<br />
2.     Mencari  Informasi: Pengumpulan berbagai  informasi yang berhubungan dengan<br />
masalah yang ada yang kemudian dikemas dalam suatu format untuk mendukung<br />
proses analisa masalah<br />
3.    Analisa  Masalah:  Situasi  permasalahan  dipelajari  secara  cermat  dengan<br />
menggunakan  berbagai  informasi  yang  telah  ada.  Berdasarkan  informasi  yang<br />
telah  tersedia,  pihak  manajemen  akan  menemukan  bidang-bidang  yang  perlu<br />
segera ditangani yang merupakan faktor utama yang memicu timbulnya masalah.<br />
4.    Evaluasi  Alternatif:  Beberapa  tindakan  yang  memungkinkan  dievaluasi  dalam<br />
kerangka tahapan proses. Berbagai alternatif diformulasikan dan dievaluasi sesuai<br />
dengan kriteria yang telah disusun oleh pengambil keputusan.<br />
5.   Keputusan: Tahapan terakhir proses adalah memiliki alternatif yang cocok untuk<br />
penanganan masalah yang sudah diidentifikasi. Keputusan akhir adalah alternatif<br />
yang dianggap paling tepat oleh pembuat keputusan untuk digunakan sebagai alat<br />
dalam mengatasi masalah yang ada. </p>
<p>1.  sistam  pendukung  manajemen  adalah  sebuah  kelengkapan  pengelolaan  dari<br />
proses-proses  yang  menyediakan  informasi  untuk  manajer  guna  mendukung<br />
operasi-operasi dan pembuatan keputusan dalam sebuah organisasi </p>
<p>2.  Bonus </p>
<p>3.  tapai harus dijelaskan fungsi masing-masing ya…- Sistem Pendukung Keputusan<br />
(SPK)<br />
- Systems Pendukung kelompok(GSS)<br />
- Siostem Informasi perusahaan<br />
- Perencanaan sumberaya perusahaan dan rantai supply manajemen<br />
- Sistem manajemen Pengetahuan<br />
- Systems Pakar (ES)<br />
- Jaringan Syaraf Tiruan<br />
- Systems pendukung Hibrid<br />
- SPK Cerdas </p>
<p>4.  sistem  pendukung  keputusan  sangat  diperlukan  sebagai  stimulan  pegambilan<br />
keputusan di  tingkat perusahaan karena saat perusahaan harus mengambil keputusan<br />
pada  situasi  di mana  beberapa  tujuan  yang  sering  kali  saling  bertentangan  serentak </p>
<p>harus  dipenuhi  secara  optimal,  sambil mempertimbangkan  terbatasnya  sumber  daya<br />
yang  ada.  Karenanya  diperlukan  suatu  sistem  untuk  mendukung  pengambilan<br />
keputusan  tersebut.  Telah  dibangun  suatu  sistem  perangkat  lunak  komputer<br />
berdasarkan  metode  numeris  untuk  optimisasi  multikriteria,  keefektifan  sistem<br />
tersebut  sebagai  alat  bantu  dalam  menyelesaikan  masalah  optimisasi  multikriteria<br />
diperlihatkan oleh suatu studi kasus.<br />
kaitannyadengan  adanya  suatu  SIP  dalam  suatu  manajemen  atau  bagi  seorang<br />
pengambil keputusan di level-level manajemen akan membantu para Si PK dalam<br />
mencari  sebuah  solusi  untuk menghasilkan  keputusan.  hal  ini  karena  SIP  akan<br />
menjadi sumber data bagi mereka yang terkoneksi dengan data base lainnya yang<br />
memudahkan mereka untuk menganalisa dan memproses PK.  </p>
<p>5.     1. Kemampuan model Maturity(CMM) digunakan untuk :<br />
   &#8211; menilai kecanggihan atau kematangan proses perangkat lunak suatu organisasi<br />
   &#8211; untuk mengidentifikasi praktik kunci yang diperlukan untuk meningkatkan<br />
     kematangan proses ini. (yang CMM memiliki penerapan umum juga)<br />
2. Kemampuan software Model Kedewasaan :<br />
    Tahapan dalam model :<br />
    &#8211; Awal. Ad hoc proses dan keberhasilan tergantung pada usaha individu<br />
    &#8211; Diulang. Dasar proses manajemen proyek di tempat untuk melacak biaya,     jadwal<br />
      dan fungsionalitas. Kepatuhan terhadap proses proyek tidak konsisten meskipun<br />
      proyek-proyek dilaksanakan<br />
    &#8211; Ditetapkan. Proses perangkat lunak standar dan didokumentasikan.<br />
    &#8211; Dikelola. Langkah-langkah rinci proses perangkat lunak dan kualitas produk<br />
      dikumpulkan. Statistik pada proses kualitas perangkat lunak berkumpul<br />
   &#8211; Optimalkan. Perbaikan proses terus-menerus menggunakan umpan kualitatif dan<br />
      ide-ide inovatif<br />
Dengan adanya SW akan membantu para PK dalam mencari keputusan dengan waktu yg<br />
efisien, menghemat  tenaga,  menghemat  tempat  karena  semua  tersedia  dalam  software<br />
yang memiliki data base yg canggih, menghemat biaya, keputusan diperoleh  lebih cepat<br />
dan diperkuat dgn perhitungan secara kuantitatif dan kualitatif </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=109&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/11/24/sistem-pendukung-keputusan-jawaban-kuiss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
		<item>
		<title>Membedakan CD ori dan Bajakan windows</title>
		<link>http://triasmara.wordpress.com/2009/09/10/membedakan-cd-ori-dan-bajakan-windows/</link>
		<comments>http://triasmara.wordpress.com/2009/09/10/membedakan-cd-ori-dan-bajakan-windows/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 14:29:30 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[information news]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=90</guid>
		<description><![CDATA[dari beberapa forum tanya jawab,khirnya saya mendapatkan beberapa cara untuk membedakan cd ori atau bajakan : 1. permukaan CD ada hologram. - kalo di aslinya Bukan Stiker dan juga bukan seperti dicetak langsung ke Cd, jd seakan-akan adalah bagian dari CD itu sendiri. - kalo bajakan tidak sperti diatas tapi kalo yg membajak juga canggih, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=90&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>dari beberapa forum tanya jawab,khirnya saya mendapatkan beberapa cara untuk membedakan cd ori atau bajakan :</p>
<p>1. permukaan CD ada hologram.<br />
- kalo di aslinya Bukan Stiker dan juga bukan seperti dicetak langsung ke Cd, jd seakan-akan adalah bagian dari<br />
  CD itu sendiri.<br />
- kalo bajakan tidak sperti diatas<br />
  tapi kalo yg membajak juga canggih, mungkin agak susah bedainnya.</p>
<p>2. Yang paling gampang konek ke internet trus download Updatenya dari situs microsoft, kalo gak bisa berarti<br />
    bajakan, tapi kalo bisa terus berarti Ori..dan biasanya yg bajakan bisa sih download security update<br />
    awalnya,..tapi abis restart PC langsung deh nongol Windows </p>
<p>3. CD ori lebih halus texture nya dan pastinya harganya sekitar 232 $(liat di amazon)<br />
   CD bajakan dijual di tempat yang ecek2 dan harganya sekitar 50 rebu (jauh bener)<br />
    Tapi kalo ada orang nawarin jual sekitar 300 rebu terus ngakunya ori berarti&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..siap2<br />
    tempeleng orang itu karena dia penipu<br />
4. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=90&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/09/10/membedakan-cd-ori-dan-bajakan-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
		<item>
		<title>MEMBUAT LAPORAN FORMULA  pada CRYSTAL REPORT 8.5 DAN VB 6.0</title>
		<link>http://triasmara.wordpress.com/2009/08/12/membuat-laporan-formula-pada-crystal-report-8-5-dan-vb-6-0/</link>
		<comments>http://triasmara.wordpress.com/2009/08/12/membuat-laporan-formula-pada-crystal-report-8-5-dan-vb-6-0/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 13:22:05 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[VB programming]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=86</guid>
		<description><![CDATA[laporan biasanya digunakan oleh suatu nstansi yang ingin menggunakan suatu data tertentuu untuk tujuan tertentu pula, aplikasi database yang baik hendaknya menyediakan laporan tidak hanya berbenituk data digital namun juga harus menyediakan fasilitas untuk menampilkan laporan dalam bentuk fisik (print out). dalam visual basic laporan bisa dibuat dengan data report namun fasilitas yang disediakan masih [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=86&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>laporan biasanya digunakan oleh suatu nstansi yang ingin menggunakan suatu data tertentuu untuk tujuan tertentu pula, aplikasi database yang baik hendaknya menyediakan laporan tidak hanya berbenituk data digital namun juga harus menyediakan fasilitas untuk menampilkan laporan dalam bentuk fisik (print out). dalam visual basic laporan bisa dibuat dengan data report namun  fasilitas yang disediakan masih minm, jika menggunakan crystal report maka laporan yang dirancang menjadi lebih interaktif.<br />
		dalam tulisan kali ini saya akan mencoba membuat laporan berdasarkan query database, dimana laporan hanya menampilkan dat atertentu yang diinginkan oleh user, contoh laporanya sebagai berikut :<br />
<img src="http://triasmara.files.wordpress.com/2009/08/10-08-2009-23-43-16.jpg?w=233&#038;h=300" alt="10-08-2009 23-43-16" title="10-08-2009 23-43-16" width="233" height="300" class="alignleft size-medium wp-image-85" /></p>
<p>llangkah – langkah pembuatan report di crystal report :<br />
1.	masuk ke crystal report ,kemudian pilih using the report expert, pilih standard.<br />
2.	klik database pilih database files -&gt;find database files -&gt; klik add.<br />
3.	selanjutnya pilih database yang ingin digunakan, pilih tabel yang ingin dibuat laporanya. klik add  kemudian close.<br />
4.	pada form standard report expert pilih next, pilih add all  jika semua field pada database ingin dimasukkan kelaporan,jika hanya field tertentu pilih add.<br />
5.	jika field telah tampil kemudian pilih menu report &#8211; &gt; edit selection formula -&gt; record.<br />
6.	berikutnya akan munucl daftar field yang kita pilih saat konfigurasi database di awal, klik 2 kali pada field, lihat gbr berikut :<br />
<span id="more-86"></span><br />
<img src="http://triasmara.files.wordpress.com/2009/08/11-08-2009-0-07-39.jpg?w=300&#038;h=225" alt="11-08-2009 0-07-39" title="11-08-2009 0-07-39" width="300" height="225" class="alignleft size-medium wp-image-87" /></p>
<p>7.misalkan yang dipilih ialah nik, selanjutnya setelah teks {bio_guru.nik} tambahkan = kemudian diikuti data yang akan menjadi acuan misal : {bio_guru.nik} = “123”<br />
8.  save query tersebut, selanjutnya  pilih refresh data. maka data yang akan ytampil dilaporan hanya data tertentu yang kita inginkan. sampai disini setting dicrystal report telah selesai, selanjutnya kita melakukan pemanggilan melalui vb.<br />
langkah – langkah pemanggilan crystal report :<br />
1.	tambahkan komponen adodc, command dan crystal report control serta caption pada form aplikasi. pada properties caption pilih data source adodc. sebelumnya setting terlebih dahulu database pada adodc agar bisa membaca tabel dan record yang sama pada formula di crystal report tadi yaitu nik.<br />
2.	caption akan menjadi indikator data yang akan ditampilakn dilaporan.ubah nama crystal report menjadi cetak_data.<br />
3.	selanjutnya pada command isikan coding berikut :</p>
<p>With cetak_data<br />
.ReportFileName = App.Path &amp;<strong> &#8220;\data_siswa_detail.rpt&#8221;</strong><br />
.Connect = Provider = &#8220;Microsoft.Jet.OLEDB.4.0;Data Source=<strong>dbsiswa.mdb</strong>;Persist Security Info=False&#8221;<br />
.ReplaceSelectionFormula<strong> &#8220;{bio_siswa.nis}=&#8217;&#8221; &amp; Label19.Caption &amp; &#8220;&#8216;&#8221;</strong><br />
.Action = 1<br />
End With<br />
sesuaikan dengan beberapa teks yang dicetak tebal ( nama database dan letak file laporan serta nama record) yang dengan aplikasi yang anda rancang. setelah laporan dapat dipanggil dari vb, maka selanjutnya pada report harus ada yang diubah, yaitu pada bagian formula report.<br />
buka kembali dokument report yang telah dibuat pada crystal report. kkemudian pilih report -&gt; edit selection formula &#8211; &gt; record. hilangkan formula yang dibuat pada langkah pertama tadi, kemudian save, hal ini bertujuan agar data yang ditampilkan hanya diatur oleh control record (caption) pada aplikasi vb.<br />
wassalam.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=86&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/08/12/membuat-laporan-formula-pada-crystal-report-8-5-dan-vb-6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>

		<media:content url="http://triasmara.files.wordpress.com/2009/08/10-08-2009-23-43-16.jpg?w=233" medium="image">
			<media:title type="html">10-08-2009 23-43-16</media:title>
		</media:content>

		<media:content url="http://triasmara.files.wordpress.com/2009/08/11-08-2009-0-07-39.jpg?w=300" medium="image">
			<media:title type="html">11-08-2009 0-07-39</media:title>
		</media:content>
	</item>
		<item>
		<title>koneksi SQL server dengan vb 6.0 menggunakan adodc</title>
		<link>http://triasmara.wordpress.com/2009/08/12/koneksi-sql-server-dengan-vb-6-0-menggunakan-adodc/</link>
		<comments>http://triasmara.wordpress.com/2009/08/12/koneksi-sql-server-dengan-vb-6-0-menggunakan-adodc/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 13:03:48 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[VB programming]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=80</guid>
		<description><![CDATA[sql server sering digunakan untuk aplikasi yang berbasis client-server, yaitu aplikasi yang antara software dan databasenya terpisah antara satu komputer dengan komputer yang lain. batabse sql sendiiri terdiri dari dua jenis, yaitu MYSQL dan SQL server, Mysql biasa digunakan untuk aplikasi yang databasenya terintegrated dengan software yang diinstal, sedangkan sql server digunakan untuk aplikasi yang [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=80&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>sql server sering digunakan untuk aplikasi yang berbasis client-server, yaitu aplikasi yang antara software dan databasenya terpisah antara satu komputer dengan komputer yang lain. batabse sql sendiiri terdiri dari dua jenis, yaitu MYSQL dan SQL server, Mysql biasa digunakan untuk aplikasi yang databasenya terintegrated dengan software yang diinstal, sedangkan sql server digunakan untuk aplikasi yang databasenya di share  dikomputer lain.<br />
dalam tutorial ini tabel bernama biodata dengan field nama,nim,jurusan dan thn_masuk. diasumsikan data didalm tabel tersebut telah didefenisikan sebagai berikut :</p>
<p><img src="http://triasmara.files.wordpress.com/2009/08/10-08-2009-22-45-40.jpg?w=300&#038;h=133" alt="10-08-2009 22-45-40" title="10-08-2009 22-45-40" width="300" height="133"></p>
<p>jika tabel dan data telah didefenisikan, kemudian selanjutnya konfigurasi program pada vb,<br />
selanjutnay asumsikan rancangan formnya seperti berikut :</p>
<p><img src="http://triasmara.files.wordpress.com/2009/08/10-08-2009-22-52-44.jpg?w=300&#038;h=252" alt="10-08-2009 22-52-44" title="10-08-2009 22-52-44" width="300" height="252" class="alignleft size-medium wp-image-82" /><br />
<span id="more-80"></span><br />
selain komponen command dan text masukkan komponen adodc dan datagrid, selanjutnya setting string untuk mengkoneksikan dengan database dengan cara :<br />
•	klik kanan adodc,pilih properties.<br />
•	use connection string.<br />
•	masukkan teks berikut :<br />
DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=mahasiswa;UID=root<br />
                  ;PWD=mamat;PORT=3306;OPTION=3</p>
<p>•	masukkan teks diatas secara utuh tidak terpisah, teks yang berwarna merah disesuaikan dengan settingan saat penginstalan pada sql server yaitu user id dan password. sedangkan teks berwarna biru merupakan nama databse tempat tabel dibuat.<br />
•	pilih tab  record source,pilih ad Cmd tabel,kemudian pilih tabel yang ingin ditampilkan datanya.<br />
•	pilih oK/apply.<br />
•	selanjutnya pada data grid datasource pilih adodc. klik kana datagrid kemudian reitreve fields. jika tidak ada kesalahan maka akan muncul fields tabel biodata yang datanya akan ditampilkan pada data datagrid.<br />
           catatan penting : sebelum mengkoneksikan database sql server dengan vb 6.0, kita harus menginstall terlebih dahulu  : DRIVER  MYSQL Connector_ODBC__mysql-connector-odbc-3.51.12-win32.zip, silahkan download.<br />
cara yang saya jelaskan diatas ialah salah satu cara mengkoneksikan database sql server dengan vb melalui koneksi string pada adodc. keuntungan nya ialah cara melakukannya cukup simpel dan mudah, namun cara ini jarang digunakan oleh programer karena faktor fleksibilitas pada saat run time program. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=80&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/08/12/koneksi-sql-server-dengan-vb-6-0-menggunakan-adodc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>

		<media:content url="http://triasmara.files.wordpress.com/2009/08/10-08-2009-22-45-40.jpg?w=300" medium="image">
			<media:title type="html">10-08-2009 22-45-40</media:title>
		</media:content>

		<media:content url="http://triasmara.files.wordpress.com/2009/08/10-08-2009-22-52-44.jpg?w=300" medium="image">
			<media:title type="html">10-08-2009 22-52-44</media:title>
		</media:content>
	</item>
		<item>
		<title>object on java programing</title>
		<link>http://triasmara.wordpress.com/2009/08/05/object-on-java-programing/</link>
		<comments>http://triasmara.wordpress.com/2009/08/05/object-on-java-programing/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:33:46 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[java programming]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=74</guid>
		<description><![CDATA[A typical Java program creates many objects, which, as you know, interact by invoking methods. Through these object interactions, a program can carry out various tasks, such as implementing a GUI, running an animation, or sending and receiving information over a network. Once an object has completed the work for which it was created, its [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=74&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A typical Java program creates many objects, which, as you know, interact by invoking methods.</p>
<p>Through these object interactions, a program can carry out various tasks, such as implementing a GUI, running an animation, or sending and receiving information over a network. Once an object has completed the work for which it was created, its resources are recycled for use by other objects.</p>
<p>Here&#8217;s a small program, called CreateObjectDemo,[1] that creates three objects: one Point object and two Rectangle objects. The Point and Rectangle classes are listed in the Initializing an Object section (page 101).</p>
<p>[1] tutorial/java/javaOO/examples/CreateObjectDemo.java</p>
<p>public class CreateObjectDemo {</p>
<p>  public static void main(String[] args) {</p>
<p>    // Declare and create a point object<br />
    // and two rectangle objects.<br />
    Point originOne = new Point(23, 94);<br />
    Rectangle rectOne = new Rectangle(originOne, 100, 200);<br />
    Rectangle rectTwo = new Rectangle(50, 100);</p>
<p>    // display rectOne&#8217;s width, height, and area<br />
    System.out.println(&#8220;Width of rectOne: &#8221; + rectOne.width);<br />
    System.out.println(&#8220;Height of rectOne: &#8221; + rectOne.height);<br />
    System.out.println(&#8220;Area of rectOne: &#8221; +<br />
                                    rectOne.getArea());</p>
<p>    // set rectTwo&#8217;s position<br />
    rectTwo.origin = originOne;</p>
<p>    // display rectTwo&#8217;s position<br />
    System.out.println(&#8220;X Position of rectTwo: &#8221; +<br />
                                          rectTwo.origin.x);<br />
    System.out.println(&#8220;Y Position of rectTwo: &#8221; +<br />
                                          rectTwo.origin.y);</p>
<p>    // move rectTwo and display its new position<br />
    rectTwo.move(40, 72);<br />
    System.out.println(&#8220;X Position of rectTwo: &#8221; +<br />
                                          rectTwo.origin.x);<br />
    System.out.println(&#8220;Y Position of rectTwo: &#8221; +<br />
                                          rectTwo.origin.y);<br />
  }<br />
}</p>
<p><span id="more-74"></span><br />
This program creates, manipulates, and displays information about various objects. Here&#8217;s the output:</p>
<p>Width of rectOne: 100<br />
Height of rectOne: 200<br />
Area of rectOne: 20000<br />
X Position of rectTwo: 23<br />
Y Position of rectTwo: 94<br />
X Position of rectTwo: 40<br />
Y Position of rectTwo: 72</p>
<p>The following three sections use the above example to describe the life cycle of an object within a program. From them, you will learn how to write code that creates and uses objects in your own programs. You will also learn how the system cleans up after an object when its life has ended.</p>
<p>Creating Objects<br />
As you know, a class provides the blueprint for objects; you create an object from a class. Each of the following statements taken from the CreateObjectDemo program creates an object and assigns it to a variable:</p>
<p>Point originOne = new Point(23, 94);<br />
Rectangle rectOne = new Rectangle(originOne, 100, 200);<br />
Rectangle rectTwo = new Rectangle(50, 100);</p>
<p>The first line creates an object of the Point class, and the second and third lines each create an object of the Rectangle class.</p>
<p>Each of these statements has three parts (discussed in detail below):</p>
<p>Declaration. The code set in bold are all variable declarations that associate a variable name with an object type.</p>
<p>Instantiation. The new keyword is a Java operator that creates the object.</p>
<p>Initialization. The new operator is followed by invoking a constructor, which initializes the new object.</p>
<p>Declaring a Variable to Refer to an Object<br />
Previously, you learned that to declare a variable, you write:</p>
<p>type name;</p>
<p>This notifies the compiler that you will use name to refer to data whose type is type. With a primitive variable, this declaration also reserves the proper amount of memory for the variable.</p>
<p>You can also declare a reference variable on its own line. For example:</p>
<p>Point originOne;</p>
<p>If you declare originOne like this, its value will be undetermined until an object is actually created and assigned to it. Simply declaring a reference variable does not create an object. For that, you need to use the new operator, as described in the next section. You must assign an object to originOne before you use it in your code. Otherwise, you will get a compiler error.</p>
<p>A variable in this state, which currently references no object, can be illustrated by Figure 4.1 (the variable name, originOne, plus a reference pointing to nothing).</p>
<p>Figure 4.1. originOne is null.</p>
<p>Instantiating a Class<br />
The new operator instantiates a class by allocating memory for a new object and returning a reference to that memory. The new operator also invokes the object constructor.</p>
<p>Note</p>
<p>The phrase &#8220;instantiating a class&#8221; means the same thing as &#8220;creating an object.&#8221; When you create an object, you are creating an &#8220;instance&#8221; of a class, therefore &#8220;instantiating&#8221; a class.</p>
<p>The new operator requires a single, postfix argument: invoking a constructor. The name of the constructor provides the name of the class to instantiate.</p>
<p>The new operator returns a reference to the object it created. This reference is usually assigned to a variable of the appropriate type, like:</p>
<p>Point originOne = new Point(23, 94);</p>
<p>The reference returned by the new operator does not have to be assigned to a variable. It can also be used directly in an expression. For example:</p>
<p>int height = new Rectangle().height;</p>
<p>This statement will be discussed in the next section.</p>
<p>Initializing an Object<br />
Here&#8217;s the code for the Point class:[2]</p>
<p>[2] tutorial/java/javaOO/examples/Point.java</p>
<p>public class Point {<br />
  public int x = 0;<br />
  public int y = 0;<br />
  // constructor<br />
  public Point(int a, int b) {<br />
  x = a;<br />
  y = b;<br />
  }<br />
}</p>
<p>This class contains a single constructor. You can recognize a constructor because its declaration uses the same name as the class and it has no return type. The constructor in the Point class takes two integer arguments, as declared by the code (int a, int b). The following statement provides 23 and 94 as values for those arguments:</p>
<p>Point originOne = new Point(23, 94);</p>
<p>The result of executing this statement can be illustrated by Figure 4.2.</p>
<p>Figure 4.2. originOne now points to a Point object.</p>
<p>Here&#8217;s the code for the Rectangle class,[3] which contains four constructors:</p>
<p>[3] tutorial/java/javaOO/examples/Rectangle.java</p>
<p>public class Rectangle {<br />
  public int width = 0;<br />
  public int height = 0;<br />
  public Point origin;</p>
<p>  // four constructors<br />
  public Rectangle() {<br />
    origin = new Point(0, 0);<br />
  }<br />
  public Rectangle(Point p) {<br />
    origin = p;<br />
  }<br />
  public Rectangle(int w, int h) {<br />
    origin = new Point(0, 0);<br />
    width = w;<br />
    height = h;<br />
  }<br />
  public Rectangle(Point p, int w, int h) {<br />
    origin = p;<br />
    width = w;<br />
    height = h;<br />
  }</p>
<p>  // a method for moving the rectangle<br />
  public void move(int x, int y) {<br />
    origin.x = x;<br />
    origin.y = y;<br />
  }</p>
<p>  // a method for computing the area of the rectangle<br />
  public int getArea() {<br />
    return width * height;<br />
  }<br />
}</p>
<p>Each constructor lets you provide initial values for the rectangle&#8217;s size and width, using both primitive and reference types. If a class has multiple constructors, they must have different signatures. The Java compiler differentiates the constructors based on the number and the type of the arguments. When the Java compiler encounters the following code, it knows to invoke the constructor in the Rectangle class that requires a Point argument followed by two integer arguments:</p>
<p>Rectangle rectOne = new Rectangle(originOne, 100, 200);</p>
<p>This invokes one of Rectangle&#8217;s constructors that initializes origin to originOne. Also, the constructor sets width to 100 and height to 200. Now there are two references to the same Point object; an object can have multiple references to it, as shown in Figure 4.3.</p>
<p>Figure 4.3. originOne now points to a Point object.</p>
<p>The following line of code invokes the Rectangle constructor that requires two integer arguments, which provide the initial values for width and height. If you inspect the code within the constructor, you will see that it creates a new Point object whose x and y values are initialized to 0:</p>
<p>Rectangle rectTwo = new Rectangle(50, 100);</p>
<p>The Rectangle constructor used in the following statement doesn&#8217;t take any arguments, so it&#8217;s called a no-argument constructor:</p>
<p>Rectangle rect = new Rectangle();</p>
<p>All classes have at least one constructor. If a class does not explicitly declare any, the Java compiler automatically provides a no-argument constructor, called the default constructor. This default constructor invokes the class parent&#8217;s no-argument constructor, or the Object constructor if the class has no other parent. If the parent has no constructor (Object does have one), the compiler will reject the program.</p>
<p>Using Objects<br />
Once you&#8217;ve created an object, you probably want to use it for something. You may need to use the value of one of its fields, change one of its fields, or invoke one of its methods to perform an action.</p>
<p>Referencing an Object&#8217;s Fields<br />
Object fields are accessed by their name. You must use a name that is unambiguous.</p>
<p>You may use a simple name for a field within its own class. For example, we can add a statement within the Rectangle class that prints the width and height:</p>
<p>System.out.println(&#8220;Width and height are: &#8221; +<br />
                                width + &#8220;, &#8221; + height);</p>
<p>In this case, width and height are simple names.</p>
<p>Code that is outside the object&#8217;s class must use an object reference or expression, followed by the dot (.) operator, followed by a simple field name, as in:</p>
<p>objectReference.fieldName</p>
<p>For example, the code in the CreateObjectDemo class is outside the code for the Rectangle class. So to refer to the origin, width, and height fields within the Rectangle object named rectOne, the CreateObjectDemo class must use the names rectOne.origin, rectOne.width, and rectOne.height, respectively. The program uses two of these names to display the width and the height of rectOne:</p>
<p>System.out.println(&#8220;Width of rectOne: &#8221; + rectOne.width);<br />
System.out.println(&#8220;Height of rectOne: &#8221; + rectOne.height);</p>
<p>Attempting to use the simple names width and height from the code in the CreateObjectDemo class doesn&#8217;t make sensethose fields exist only within an objectand results in a compiler error.</p>
<p>Later, the program uses similar code to display information about rectTwo. Objects of the same type have their own copy of the same instance fields. Thus, each Rectangle object has fields named origin, width, and height. When you access an instance field through an object reference, you reference that particular object&#8217;s field. The two objects rectOne and rectTwo in the CreateObjectDemo program have different origin, width, and height fields.</p>
<p>To access a field, you can use a named reference to an object, as in the previous examples, or you can use any expression that returns an object reference. Recall that the new operator returns a reference to an object. So you could use the value returned from new to access a new object&#8217;s fields:</p>
<p>int height = new Rectangle().height;</p>
<p>This statement creates a new Rectangle object and immediately gets its height. In essence, the statement calculates the default height of a Rectangle. Note that after this statement has been executed, the program no longer has a reference to the created Rectangle, because the program never stored the reference anywhere. The object is unreferenced, and its resources are free to be recycled by the Java Virtual Machine.</p>
<p>Invoking an Object&#8217;s Methods<br />
You also use an object reference to invoke an object&#8217;s method. You append the method&#8217;s simple name to the object reference, with an intervening dot operator (.). Also, you provide, within enclosing parentheses, any arguments to the method. If the method does not require any arguments, use empty parentheses.</p>
<p>objectReference.methodName(argumentList);</p>
<p>or</p>
<p>objectReference.methodName();</p>
<p>The Rectangle class has two methods: getArea() to compute the rectangle&#8217;s area and move() to change the rectangle&#8217;s origin. Here&#8217;s the CreateObjectDemo code that invokes these two methods:</p>
<p>System.out.println(&#8220;Area of rectOne: &#8221; + rectOne.getArea());<br />
&#8230;<br />
rectTwo.move(40, 72);</p>
<p>The first statement invokes rectOne&#8217;s getArea() method and displays the results. The second line moves rectTwo because the move() method assigns new values to the object&#8217;s origin.x and origin.y.</p>
<p>As with instance fields, objectReference must be a reference to an object. You can use a variable name, but you also can use any expression that returns an object reference. The new operator returns an object reference, so you can use the value returned from new to invoke a new object&#8217;s methods:</p>
<p>new Rectangle(100, 50).getArea()</p>
<p>The expression new Rectangle(100, 50) returns an object reference that refers to a Rectangle object. As shown, you can use the dot notation to invoke the new Rectangle&#8217;s getArea() method to compute the area of the new rectangle.</p>
<p>Some methods, such as getArea(), return a value. For methods that return a value, you can use the method invocation in expressions. You can assign the return value to a variable, use it to make decisions, or control a loop. This code assigns the value returned by getArea() to the variable areaOfRectangle:</p>
<p>int areaOfRectangle = new Rectangle(100, 50).getArea();</p>
<p>Remember, invoking a method on a particular object is the same as sending a message to that object. In this case, the object that getArea() is invoked on is the rectangle returned by the constructor.</p>
<p>The Garbage Collector<br />
Some object-oriented languages require that you keep track of all the objects you create and that you explicitly destroy them when they are no longer needed. Managing memory explicitly is tedious and error-prone. The Java platform allows you to create as many objects as you want (limited, of course, by what your system can handle), and you don&#8217;t have to worry about destroying them. The Java runtime environment deletes objects when it determines that they are no longer being used. This process is called garbage collection.</p>
<p>An object is eligible for garbage collection when there are no more references to that object. References that are held in a variable are usually dropped when the variable goes out of scope. Or, you can explicitly drop an object reference by setting the variable to the special value null. Remember that a program can have multiple references to the same object; all references to an object must be dropped before the object is eligible for garbage collection.</p>
<p>The Java runtime environment has a garbage collector that periodically frees the memory used by objects that are no longer referenced. The garbage collector does its job automatically when it determines that the time is right.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=74&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/08/05/object-on-java-programing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
		<item>
		<title>class in java programing</title>
		<link>http://triasmara.wordpress.com/2009/08/05/class-in-java-programing/</link>
		<comments>http://triasmara.wordpress.com/2009/08/05/class-in-java-programing/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:21:38 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[java programming]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/2009/08/05/class-in-java-programing/</guid>
		<description><![CDATA[The introduction to object-oriented concepts in Chapter 2 used a bicycle class as an example, with racing bikes, mountain bikes, and tandem bikes as subclasses. Here is sample code for a possible implementation of a Bicycle class, to give you an overview of a class declaration. Subsequent sections of this chapter will back up and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=73&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The introduction to object-oriented concepts in Chapter 2 used a bicycle class as an example, with racing bikes, mountain bikes, and tandem bikes as subclasses. Here is sample code for a possible implementation of a Bicycle class, to give you an overview of a class declaration. Subsequent sections of this chapter will back up and explain class declarations step by step. For the moment, don&#8217;t concern yourself with the details.</p>
<p>public class Bicycle {<br />
  // the Bicycle class has three fields<br />
  public int cadence;<br />
  public int gear;<br />
  public int speed;</p>
<p>  // the Bicycle class has one constructor<br />
  public Bicycle(int startCadence,<br />
                 int startSpeed, int startGear) {<br />
    gear = startGear;<br />
    cadence = startCadence;<br />
    speed = startSpeed;<br />
  }</p>
<p>  // the Bicycle class has four methods<br />
  public void setCadence(int newValue) {<br />
    cadence = newValue;<br />
  }</p>
<p>  public void setGear(int newValue) {<br />
    gear = newValue;<br />
  }</p>
<p>  public void applyBrake(int decrement) {<br />
    speed -= decrement;<br />
  }</p>
<p>  public void speedUp(int increment) {<br />
    speed += increment;<br />
  }<br />
}</p>
<p><span id="more-73"></span></p>
<p>A class declaration for a MountainBike class that is a subclass of Bicycle might look like this:</p>
<p>public class MountainBike extends Bicycle {<br />
  // the MountainBike subclass has one field<br />
  public int seatHeight;</p>
<p>  // the MountainBike subclass has one constructor<br />
  public MountainBike(int startHeight, int startCadence,<br />
                            int startSpeed, int startGear) {<br />
    super(startCadence, startSpeed, startGear);<br />
    seatHeight = startHeight;<br />
  }</p>
<p>  // the MountainBike subclass has one method<br />
  public void setHeight(int newValue) {<br />
    seatHeight = newValue;<br />
  }<br />
}</p>
<p>MountainBike inherits all the fields and methods of Bicycle and adds the field seatHeight and a method to set it (mountain bikes have seats that can be moved up and down as the terrain demands).</p>
<p>Declaring Classes<br />
You&#8217;ve seen classes defined in the following way:</p>
<p>class MyClass {<br />
  // field, constructor, and method declarations<br />
}</p>
<p>This is a class declaration. The class body (the area between the braces) contains all the code that provides for the life cycle of the objects created from the class: constructors for initializing new objects, declarations for the fields that provide the state of the class and its objects, and methods to implement the behavior of the class and its objects.</p>
<p>The preceding class declaration is a minimal oneit contains only those components of a class declaration that are required. You can provide more information about the class, such as the name of its superclass, whether it implements any interfaces, and so on, at the start of the class declaration. For example,</p>
<p>class MyClass extends MySuperClass implements YourInterface {<br />
  // field, constructor, and method declarations<br />
}</p>
<p>means that MyClass is a subclass of MySuperClass and that it implements the YourInterface interface.</p>
<p>You can also add modifiers like public or private at the very beginningso you can see that the opening line of a class declaration can become quite complicated. The modifiers public and private, which determine what other classes can access MyClass, are discussed later in this chapter. Chapter 5 will explain how and why you would use the extends and implements keywords in a class declaration. For the moment you do not need to worry about these extra complications.</p>
<p>In general, class declarations can include these components, in order:</p>
<p>Modifiers such as public, private, and a number of others that you will encounter later.</p>
<p>The class name, with the initial letter capitalized by convention.</p>
<p>The name of the class&#8217;s parent (superclass), if any, preceded by the keyword extends. A class can only extend (subclass) one parent.</p>
<p>A comma-separated list of interfaces implemented by the class, if any, preceded by the keyword implements. A class can implement more than one interface.</p>
<p>The class body, surrounded by braces, { }.</p>
<p>Declaring Member Variables<br />
There are several kinds of variables:</p>
<p>Member variables in a classthese are called fields.</p>
<p>Variables in a method or block of codethese are called local variables.</p>
<p>Variables in method declarationsthese are called parameters.</p>
<p>The Bicycle class uses the following lines of code to define its fields:</p>
<p>public int cadence;<br />
public int gear;<br />
public int speed;</p>
<p>Field declarations are composed of three components, in order:</p>
<p>Zero or more modifiers, such as public or private.</p>
<p>The field&#8217;s type.</p>
<p>The field&#8217;s name.</p>
<p>The fields of Bicycle are named cadence, gear, and speed and are all of data type integer (int). The public keyword identifies these fields as public members, accessible by any object that can access the class.</p>
<p>Access Modifiers<br />
The first (left-most) modifier used lets you control what other classes have access to a member field. For the moment, consider only public and private. Other access modifiers will be discussed later.</p>
<p>public modifier the field is accessible from all classes.</p>
<p>private modifier the field is accessible only within its own class.</p>
<p>In the spirit of encapsulation, it is common to make fields private. This means that they can only be directly accessed from the Bicycle class. We still need access to these values, however. This can be done indirectly by adding public methods that obtain the field values for us:</p>
<p>public class Bicycle {</p>
<p>  private int cadence;<br />
  private int gear;<br />
  private int speed;</p>
<p>  public Bicycle(int startCadence,<br />
                 int startSpeed, int startGear) {<br />
    gear = startGear;<br />
    cadence = startCadence;<br />
    speed = startSpeed;<br />
  }</p>
<p>  public int getCadence() {<br />
    return cadence;<br />
  }</p>
<p>  public void setCadence(int newValue) {<br />
    cadence = newValue;<br />
  }</p>
<p>  public int getGear() {<br />
    return gear;<br />
  }</p>
<p>  public void setGear(int newValue) {<br />
    gear = newValue;<br />
  }</p>
<p>  public int getspeed() {<br />
    return speed;<br />
  }</p>
<p>  public void applyBrake(int decrement) {<br />
    speed -= decrement;<br />
  }</p>
<p>  public void speedUp(int increment) {<br />
    speed += increment;<br />
  }<br />
}</p>
<p>Types<br />
All variables must have a type. You can use primitive types such as int, float, boolean, etc. Or you can use reference types, such as strings, arrays, or objects.</p>
<p>Variable Names<br />
All variables, whether they are fields, local variables, or parameters, follow the same naming rules and conventions that were covered in the Naming section (page 44).</p>
<p>In this chapter, be aware that the same naming rules and conventions are used for method and class names, except that:</p>
<p>the first letter of a class name should be capitalized, and</p>
<p>the first (or only) word in a method name should be a verb.</p>
<p>Defining Methods<br />
Here is an example of a typical method declaration:</p>
<p>public double calculateAnswer(double wingSpan,<br />
    int numberOfEngines, double length, double grossTons) {<br />
  // do the calculation here<br />
}</p>
<p>The only required elements of a method declaration are the method&#8217;s return type, name, a pair of parentheses, (), and a body between braces, {}.</p>
<p>More generally, method declarations have six components, in order:</p>
<p>Modifierssuch as public, private, and others you will learn about later.</p>
<p>The return typethe data type of the value returned by the method, or void if the method does not return a value.</p>
<p>The method namethe rules for field names apply to method names as well, but the convention is a little different.</p>
<p>The parameter list in parenthesisa comma-delimited list of input parameters, preceded by their data types, enclosed by parentheses, (). If there are no parameters, you must use empty parentheses.</p>
<p>An exception listto be discussed later.</p>
<p>The method body, enclosed between bracesthe method&#8217;s code, including the declaration of local variables, goes here.</p>
<p>Modifiers, return types, and parameters will be discussed later in this chapter. Exceptions are discussed in Chapter 9.</p>
<p>Definition</p>
<p>Two of the components of a method declaration comprise the method signaturethe method&#8217;s name and the parameter types.</p>
<p>The signature of the method declared above is:</p>
<p>calculateAnswer(double, int, double, double)</p>
<p>Naming a Method<br />
Although a method name can be any legal identifier, code conventions restrict method names. By convention, method names should be a verb in lowercase or a multi-word name that begins with a verb in lowercase, followed by adjectives, nouns, etc. In multiword names, the first letter of each of the second and following words should be capitalized. Here are some examples:</p>
<p>run<br />
runFast<br />
getBackground<br />
getFinalData<br />
compareTo<br />
setX<br />
isEmpty</p>
<p>Typically, a method has a unique name within its class. However, a method might have the same name as other methods due to method overloading.</p>
<p>Overloading Methods<br />
The Java programming language supports overloading methods, and Java can distinguish between methods with different method signatures. This means that methods within a class can have the same name if they have different parameter lists. (There are some qualifications to this that will be discussed in Chapter 5.)</p>
<p>Suppose that you have a class that can use calligraphy to draw various types of data (strings, integers, and so on) and that contains a method for drawing each data type. It is cumbersome to use a new name for each methodfor example, drawString, drawInteger, drawFloat, and so on. In the Java programming language, you can use the same name for all the drawing methods but pass a different argument list to each method. Thus, the data drawing class might declare four methods named draw, each of which has a different parameter list:</p>
<p>public class DataArtist {<br />
  &#8230;<br />
  public void draw(String s) {<br />
    &#8230;<br />
  }<br />
  public void draw(int i) {<br />
    &#8230;<br />
  }<br />
  public void draw(double f) {<br />
    &#8230;<br />
  }<br />
  public void draw(int i, double f) {<br />
    &#8230;<br />
  }<br />
}</p>
<p>Overloaded methods are differentiated by the number and the type of the arguments passed into the method. In the code sample, draw(String s) and draw(int i) are distinct and unique methods because they require different argument types.</p>
<p>You cannot declare more than one method with the same name and the same number and type of arguments, because the compiler cannot tell them apart.</p>
<p>The compiler does not consider return type when differentiating methods, so you cannot declare two methods with the same signature even if they have a different return type.</p>
<p>Note</p>
<p>Overloaded methods should be used sparingly, as they can make code much less readable.</p>
<p>Providing Constructors for Your Classes<br />
A class contains constructors that are invoked to create objects from the class blueprint. Constructor declarations look like method declarationsexcept that they use the name of the class and have no return type. For example, Bicycle has one constructor:</p>
<p>public Bicycle(int startCadence,<br />
               int startSpeed, int startGear) {<br />
  gear = startGear;<br />
  cadence = startCadence;<br />
  speed = startSpeed;<br />
}</p>
<p>To create a new Bicycle object called myBike, a constructor is invoked by the new operator:</p>
<p>Bicycle myBike = new Bicycle(30, 0, 8);</p>
<p>new Bicycle(30, 0, 8) creates space in memory for the object and initializes its fields.</p>
<p>Although Bicycle only has one constructor, it could have others, including a no-argument constructor:</p>
<p>public Bicycle() {<br />
  gear = 1;<br />
  cadence = 10;<br />
  speed = 0;<br />
}</p>
<p>Bicycle yourBike = new Bicycle(); invokes the no-argument constructor to create a new Bicycle object called yourBike.</p>
<p>Both constructors could have been declared in Bicycle because they have different argument lists. As with methods, the Java platform differentiates constructors on the basis of the number of arguments in the list and their types. You cannot write two constructors that have the same number and type of arguments for the same class, because the platform would not be able to tell them apart. Doing so causes a compile-time error.</p>
<p>You don&#8217;t have to provide any constructors for your class, but you must be careful when doing this. The compiler automatically provides a no-argument, default constructor for any class without constructors. This default constructor will invoke the no-argument constructor of the superclass. In this situation, the compiler will complain if the superclass doesn&#8217;t have a no-argument constructor, so you must verify that it does. If your class has no explicit superclass, then it has an implicit superclass of Object, which does have a no-argument constructor.</p>
<p>You can use a superclass constructor yourself. The MountainBike class at the beginning of this chapter did just that. This will be discussed later, in Chapter 5.</p>
<p>You can use access modifiers in a constructor&#8217;s declaration to control which other classes can invoke the constructor.</p>
<p>Note</p>
<p>If another class cannot invoke a MyClass constructor, it cannot directly create MyClass objects.</p>
<p>Passing Information to a Method or a Constructor<br />
The declaration for a method or a constructor declares the number and the type of the arguments for that method or constructor. For example, the following is a method that computes the monthly payments for a home loan, based on the amount of the loan, the interest rate, the length of the loan (the number of periods), and the future value of the loan:</p>
<p>public double computePayment(double loanAmt,<br />
                             double rate,<br />
                             double futureValue,<br />
                             int numPeriods) {<br />
  double interest = rate / 100.0;<br />
  double partial1 = Math.pow((1 + interest), -numPeriods);<br />
  double denominator = (1 &#8211; partial1) / interest;<br />
  double answer = (-loanAmt / denominator) -<br />
                     ((futureValue * partial1) / denominator);<br />
  return answer;<br />
}</p>
<p>This method has four parameters: the loan amount, the interest rate, the future value and the number of periods. The first three are double-precision floating point numbers, and the fourth is an integer. The parameters are used in the method body and at runtime will take on the values of the arguments that are passed in.</p>
<p>Note</p>
<p>Parameters refers to the list of variables in a method declaration. Arguments are the actual values that are passed in when the method is invoked. When you invoke a method, the arguments used must match the declaration&#8217;s parameters in type and order.</p>
<p>Parameter Types<br />
You can use any data type for a parameter of a method or a constructor. This includes primitive data types, such as doubles, floats, and integers, as you saw in the computePayment method, and reference data types, such as objects and arrays.</p>
<p>Here&#8217;s an example of a method that accepts an array as an argument. In this example, the method creates a new Polygon object and initializes it from an array of Point objects (assume that Point is a class that represents an x, y coordinate):</p>
<p>public Polygon polygonFrom(Point[] corners) {<br />
  // method body goes here<br />
}</p>
<p>Note</p>
<p>The Java programming language doesn&#8217;t let you pass methods into methods. But you can pass an object into a method and then invoke the object&#8217;s methods.</p>
<p>Arbitrary Number of Arguments<br />
You can use a construct called varargs to pass an arbitrary number of values to a method. You use varargs when you don&#8217;t know how many of a particular type of argument will be passed to the method. It&#8217;s a shortcut to creating an array manually (the previous method could have used varargs rather than an array).</p>
<p>To use varargs, you follow the type of the last parameter by an ellipsis (three dots, &#8230;), then a space, and the parameter name. The method can then be invoked with any number of that parameter, including none.</p>
<p>public Polygon polygonFrom(Point&#8230; corners) {<br />
  int numberOfSides = corners.length;<br />
  double squareOfSide1, lengthOfSide1;<br />
  squareOfSide1 =<br />
  (corners[1].x &#8211; corners[0].x)*(corners[1].x &#8211; corners[0].x) +<br />
  (corners[1].y &#8211; corners[0].y)*(corners[1].y &#8211; corners[0].y);<br />
  lengthOfSide1 = Math.sqrt(squareOfSide1);<br />
  // more method body code follows that creates<br />
  // and returns a polygon connecting the Points<br />
}</p>
<p>You can see that, inside the method, corners is treated like an array. The method can be invoked either with an array or with a sequence of arguments. The code in the method body will treat the parameter as an array in either case.</p>
<p>You will most commonly see varargs with the printing methodsfor example, this printf method:</p>
<p>public PrintStream printf(String format, Object&#8230; args)</p>
<p>allows you to print an arbitrary number of objects. It can be invoked like this:</p>
<p>System.out.printf(&#8220;%s: %d, %s%n&#8221;, name, idnum, address);</p>
<p>or like this:</p>
<p>System.out.printf(&#8220;%s: %d, %s, %s, %s%n&#8221;, name,<br />
                          idnum, address, phone, email);</p>
<p>or with yet a different number of arguments.</p>
<p>Parameter Names<br />
When you declare a parameter to a method or a constructor, you provide a name for that parameter. This name is used within the method body to refer to the passed-in argument.</p>
<p>The name of a parameter must be unique in its scope. It cannot be the same as the name of another parameter for the same method or constructor, and it cannot be the name of a local variable within the method or constructor.</p>
<p>A parameter can have the same name as one of the class&#8217;s fields. If this is the case, the parameter is said to shadow the field. Shadowing fields can make your code difficult to read and is conventionally used only within constructors and methods that set a particular field. For example, consider the following Circle class and its setOrigin method:</p>
<p>public class Circle {<br />
  private int x, y, radius;<br />
  public void setOrigin(int x, int y) {<br />
    &#8230;<br />
  }<br />
}</p>
<p>The Circle class has three fields: x, y, and radius. The setOrigin method has two parameters, each of which has the same name as one of the fields. Each method parameter shadows the field that shares its name. So using the simple names x or y within the body of the method refers to the parameter, not to the field. To access the field, you must use a qualified name. This will be discussed later in this chapter in the Using the this Keyword section (page 109).</p>
<p>Passing Primitive Data Type Arguments<br />
Primitive arguments, such as an int or a double, are passed into methods by value. This means that any changes to the values of the parameters exist only within the scope of the method. When the method returns, the parameters are gone and any changes to them are lost. Here is an example:</p>
<p>public class PassPrimitiveByValue {</p>
<p>  public static void main(String[] args) {</p>
<p>    int x = 3;</p>
<p>    // invoke passMethod() with x as argument<br />
    passMethod(x);</p>
<p>    // print x to see if its value has changed<br />
    System.out.println(&#8220;After invoking passMethod, x = &#8221; + x);</p>
<p>  }</p>
<p>  // change parameter in passMethod()<br />
  public static void passMethod(int p) {<br />
    p = 10;<br />
  }<br />
}</p>
<p>When you run this program, the output is:</p>
<p>After invoking passMethod, x = 3</p>
<p>Passing Reference Data Type Arguments<br />
Reference data type parameters, such as objects, are also passed into methods by value. This means that when the method returns, the passed-in reference still references the same object as before. However, the values of the object&#8217;s fields can be changed in the method, if they have the proper access level.</p>
<p>For example, consider a method in an arbitrary class that moves Circle objects:</p>
<p>public void moveCircle(Circle circle, int deltaX, int deltaY) {</p>
<p>  // code to move origin of circle to x+deltaX, y+deltaY<br />
  circle.setX(circle.getX + deltaX);<br />
  circle.setY(circle.getY + deltaY);</p>
<p>  // code to assign a new reference to circle<br />
  circle = new Circle(0, 0);<br />
}</p>
<p>Let the method be invoked with these arguments:</p>
<p>moveCircle(myCircle, 23, 56)</p>
<p>Inside the method, circle initially refers to myCircle. The method changes the x and y coordinates of the object that circle references (i.e., myCircle) by 23 and 56, respectively. (These changes will persist when the method returns.) Then circle is assigned a reference to a new Circle object with x = y = 0 . This reassignment has no permanence, however, because the reference was passed in by value and cannot change. Within the method, the object pointed to by circle has changed, but, when the method returns, myCircle still references the same Circle object as before the method was invoked.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=73&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/08/05/class-in-java-programing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
		<item>
		<title>Konferensi Hacker Dipasangi ATM Palsu</title>
		<link>http://triasmara.wordpress.com/2009/08/04/konferensi-hacker-dipasangi-atm-palsu/</link>
		<comments>http://triasmara.wordpress.com/2009/08/04/konferensi-hacker-dipasangi-atm-palsu/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 06:13:12 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/2009/08/04/konferensi-hacker-dipasangi-atm-palsu/</guid>
		<description><![CDATA[Jakarta &#8211; Kriminal di Amerika Serikat kerap nekat memasang mesin ATM palsu untuk mencuri data nasabah bank. Hanya saja, kali ini para kriminal membuat kesalahan besar dengan memasang ATM palsu di tengah konferensi hacker. Blunder penjahat itu terjadi di konferensi hacker Defcon yang digelar di Las Vegas, Amerika Serikat. Seperti dikutip detikINET dari PCWorld, mesin [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=72&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Jakarta &#8211; Kriminal di Amerika Serikat kerap nekat memasang mesin ATM palsu untuk mencuri data nasabah bank. Hanya saja, kali ini para kriminal membuat kesalahan besar dengan memasang ATM palsu di tengah konferensi hacker.</p>
<p>Blunder penjahat itu terjadi di konferensi hacker Defcon yang digelar di Las Vegas, Amerika Serikat. Seperti dikutip detikINET dari PCWorld, mesin ATM palsu dipasang di hotel Riviera Las Vegas.</p>
<p>Konferensi yang mengumpulkan 8.000-an hacker, dalam hal ini berarti para peneliti keamanan komputer, dari berbagai penjuru dunia itu jelas jadi ajang yang paling buruk untuk mencoba menipu. Peserta yang gemar mengutak-atik sistem komputer cepat menemukan keganjilan pada salah satu ATM di Riviera.</p>
<p>&#8220;Mereka melihat bagian layar yang seharusnya ada kamera. Terlihat agak gelap, jadi seseorang menyorotnya dengan senter dan ternyata ada PC di dalamnya,&#8221; tukas Priest, salah satu panitia senior konferensi tersebut.</p>
<p>Mesin ATM palsu itu sekilas, apalagi bagi orang awam, nampak biasa saja. Namun saat kartu dimasukkan, mesin itu akan merekam data dari kartu dan merekam nomor PIN yang ditekan pengguna.</p>
<p>Terungkapnya mesin ATM palsu ini pun akhirnya memicu investigasi dari pihak keamanan setempat. Tidak diketahui sudah berapa lama mesin itu berada di sana, dan berapa banyak nasabah yang sudah menjadi korban.</p>
<p>Agaknya, pelaku kriminal juga perlu hati-hati dalam mencoba menipu korbannya. Jika aksi kriminal berbasis teknologi dilakukan di tengah-tengah konferensi hacker, jangan harap ada untung yang bisa diraup.(deti.net)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=72&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/08/04/konferensi-hacker-dipasangi-atm-palsu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
		<item>
		<title>membuat email palsu dengan MS Outlook</title>
		<link>http://triasmara.wordpress.com/2009/07/28/membuat-email-palsu-dengan-ms-outlook/</link>
		<comments>http://triasmara.wordpress.com/2009/07/28/membuat-email-palsu-dengan-ms-outlook/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 13:00:54 +0000</pubDate>
		<dc:creator>triasmara</dc:creator>
				<category><![CDATA[information news]]></category>

		<guid isPermaLink="false">http://triasmara.wordpress.com/?p=63</guid>
		<description><![CDATA[sering kali kita mendapat email dari teman ataupun milis yang mana nama email yang mengirim mesage ke email kita bermacam-macam. namun bagaimana jika email tersebut dikirim dengan menggunakan nama-nama yang popular atau saat kita melihat nama pengirim email hati kita langsung berbunga-bunga . hati-hati lah teman,cek dan ricek email yang anda terima karena nama pengirim [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=63&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>sering kali kita mendapat email dari teman ataupun milis yang mana nama email yang mengirim mesage ke email kita bermacam-macam. namun bagaimana jika email tersebut dikirim dengan menggunakan nama-nama yang popular atau saat kita melihat nama pengirim email hati kita langsung berbunga-bunga <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . hati-hati lah teman,cek dan ricek email yang anda terima karena nama pengirim email belum tentu dalah nama aslinya, bisa saja sang pengirim membuat email palsu dan mengirimnya ke anda.</p>
<p>             email palsu dapat dibuat salah satunya dengan MS Outlook, software ini disediakan oleh microsoft untuk membaca,mengirim,memaintenance account email dll. dengan itu pula kita dapat membuat account email palsu dengan cara sebagai berikut :<br />
buka MS outlook dan login dengan account email anda (tentunya anda harus terhubung ke internet),jika sudah selanjutnya klik menu tools pilih account setting dan pilih add mail. berikutnya muncul form yang disediakan untuk memasukkan username dan password account baru. jangan lupa masukkan nama anda yang akan muncul saat email anda diterima.</p>
<p>   dalam tahap selanjutnya MS outlook akan mereitrve accoutn email yang kita buat,jika ada message box untuk menyimpan username.password dll OK saja.selanjutnya anda telah memilki account email palsu yang siap digunakan.</p>
<p>  untuk penggunaan ms outlook untuk mengiim email,membaca dll silahkan googling <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
thanks to JS and s&#8217;to </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/triasmara.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/triasmara.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/triasmara.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/triasmara.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/triasmara.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/triasmara.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/triasmara.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/triasmara.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/triasmara.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/triasmara.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/triasmara.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/triasmara.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/triasmara.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/triasmara.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=triasmara.wordpress.com&amp;blog=7327975&amp;post=63&amp;subd=triasmara&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://triasmara.wordpress.com/2009/07/28/membuat-email-palsu-dengan-ms-outlook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5abaa9ccfa229d80c4217f975629dd5c?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">triasmara</media:title>
		</media:content>
	</item>
	</channel>
</rss>
