import java.util.Scanner;

public class Solution {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);      
        int i = scan.nextInt();
        double d = scan.nextDouble();
        String s = scan.nextLine();

        System.out.println("String: " + s);
        System.out.println("Double: " + d);
        System.out.println("Int: " + i);
    }
}

asked 15 Jan, 13:29

Asif001's gravatar image

Asif001
715

edited 15 Jan, 13:46

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
21618


স্ট্রিং ইনপুট নেয়ার আগে

scan.nextLine();
লাইনটি বসিয়ে দিলেই হবে। বা স্ট্রিংটি সবার আগে ইনপুট নেয়া যেতে পারে।

permanent link

answered 15 Jan, 13:45

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
21618

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×204

question asked: 15 Jan, 13:29

question was seen: 59 times

last updated: 15 Jan, 13:46