Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Badguy13 Badguy13 is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 399
Rep Power: 14
Badguy13 mempunyai hidup yang Normal
Default java (Joption) arimatik

malam bro

mau tanya ni bro



kan saya lagi bikin program java ni memakai JOption

tapi kok fungsi arimatiknya gak jalan ya bro suka eror



liat deh betul gak syntaknya tolong di share thanks




Code:

import javax.swing.JOptionPane;

public class radiancy
{
public static void main( String[] args ){

String input = "";
String input2 = "";
String result = "";

input = JOptionPane.showInputDialog("Masukan input pertama");
input2 = JOptionPane.showInputDialog("Masukan input pertama");

result = input * input2;
String msg = input + " * " + input2 + " = " + result + " !";

JOptionPane.showMessageDialog(null, msg);
}
}

kok dia string resultnya gak mau di kaliin ya gan eror mulu tolong ya gan ;D



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 01:03 AM.


no new posts