Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package javaapplication14;
- /**
- *
- * @author locks
- */
- public class Main {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- int numero = 43;
- String resultado = numero + " igual a " + (numero*1.6215);
- System.out.println(resultado);
- System.out.println( conversao(numero) );
- }
- public static String conversao(int v) {
- return v + " milhas igual a " + v*1.6125;
- }
- }
Add Comment
Please, Sign In to add comment