- import java.util.Scanner;
- class ScannerTest{
- public static void main(String args[]){
- Scanner sc=new Scanner(System.in);
- System.out.println("Enter your rollno");
- int rollno=sc.nextInt();
- System.out.println("Enter your name");
- String name=sc.next();
- System.out.println("Enter your fee");
- double fee=sc.nextDouble();
- System.out.println("Rollno:"+rollno+" name:"+name+" fee:"+fee);
- sc.close();
- }
- }
Sunday, 20 November 2016
Home »
» Problem 42 - Contoh Scanner console
Problem 42 - Contoh Scanner console
Saya hanya lelaki seperti etnis cina dengan mata sipit dan hidung pesek.
0 comments:
Post a Comment