Cari artikel di situs ini

Tanggapi komentar

Mohon maaf untuk tgl,bulan,th

Mohon maaf untuk tgl,bulan,th + koneksi sebenarnya sudah tidak ada masalah, itu semua sudah didefinisikan pada kelas yang sama. Untuk lebih mudahnya, contohnya saya sederhanakan seperti berikut, mohon tanggapannya, terimakasih :    

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
               hasilnya(hasil);       //symbol not found
    }                                       

    public void tambahan(){
        int a = 1;
        int b = 2;
        int hasil = a+b;
       
        String hasil2 = Integer.toString(hasil);
        hasilnya(hasil2);
       
    }
   
    public void hasilnya(String hasil){
        jLabel3.setText(hasil);
    }

Balas

Isi bagian ini tidak akan ditampilkan untuk umum.
  • Tag HTML yang dibolehkan: <p> <br> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <span> <blockquote> <table> <caption> <tbody> <tr> <td> <h1> <h2> <h3> <h4> <h5> <h6> <address> <pre>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>, <c>, <cpp>, <java>. Beside the tag style "<foo>" it is also possible to use "[foo]".

Informasi lebih lanjut tentang opsi format tulisan

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated.