Pages

Copy Source Code Java dari Eclipse ke Microsoft Word

Terkadang saat mengerjakan tugas kuliah, kita harus mengcopy source code dari eclipse ke microsoft word, tapi saat dipaste pada Microsoft Word warna source codenya jadi hitam semua.. wadduhh... heheh...
untuk pengguna eclipse galileo, helios dan juno ternyata masih bisa mengcopy source code yang berwarna, caranya dengan menambahkan import berikut ini:

1
2
3
4
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

Sebagai contoh saya akan memindahkan source code berikut ke Microsoft Word :

1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
package jhohannes.purba;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class HelloWorld {
 public static void main(String[] args){
  System.out.println("Hello Coding Sederhana");
 }
}



Setelah tercopy, tinggal hapus aja import yang ditambah tadi, sehingga hasilnya sesuai dengan source code nya.. :D
Jhohannes H Purba Coding Sederhana October 02, 2012

10 comments:

  1. This is the precise weblog for anybody who needs to seek out out about this topic. You notice so much its almost arduous to argue with you. You positively put a brand new spin on a subject that's been written about for years. Nice stuff, simply nice!

    ReplyDelete
  2. Great article, Thanks for your great information, the content is quiet interesting. I will be waiting for your next post.

    ReplyDelete
  3. Very great post. I simply stumbled upon your blog and wanted to say that I have really enjoyed browsing your weblog posts. After all I’ll be subscribing on your feed and I am hoping you write again very soon!

    ReplyDelete
  4. Selam admin tenku web site super basarilarinizin devamini bekleriz

    ReplyDelete
  5. Hi, Really great effort. Everyone must read this article. Thanks for sharing.

    ReplyDelete
  6. I seriously consider this site needs much more attention.

    ReplyDelete
  7. I don’t know how should I give you thanks! I am totally stunned by your article. You saved my time. Thanks a million for sharing this article.

    ReplyDelete
  8. This is the precise weblog for anybody who needs to seek out out about this topic. You notice so much its almost arduous to argue with you. You positively put a brand new spin on a subject that's been written about for years. Nice stuff, simply nice!

    ReplyDelete
  9. Awesome work.Just wanted to drop a comment and say I am new to your blog and really like what I am reading.Thanks for the share

    ReplyDelete
  10. I don’t know how should I give you thanks! I am totally stunned by your article. You saved my time. Thanks a million for sharing this article.

    ReplyDelete