package tiposprimitivos;
import java.util.Scanner;
/**
*
-
@author DANIEL
*/
public class TiposPrimitivos {/**
-
@param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner teclado = new Scanner(System.in);
String nome = teclado.nextLine();
float nota = teclado.nextFloat();
System.out.format(“A nota de %s %.1f \n”,nome,nota);//ou System.out.format
}
-
@param args the command line arguments
}