Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

take string , double and int value from useer using java

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();

    scan.nextLine();
    String s = scan.nextLine();

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

PREVIOUS NEXT
Code Example
Java :: ava program to add two numbers taking input from user 
Java :: string split to list java 
Java :: android java onUpgrade() 
Java :: Clicking on Fragment goes through in Activity 
Java :: pyqt tree view 
Java :: Calling constructor methods in java 
Java :: android studio doesnt work when in full screen mac os 
Java :: java program scan folder find files using time 
Java :: how to find last digit in number by regex in java 
Java :: https://java2blog.com/java-program-count-number-words-string/ 
Java :: call to jdbc template each class not by super 
Java :: Java Copying Arrays Using arraycopy() method 
Java :: android studio java catch empty button 
Java :: how does minus works in Java 
Java :: Java private no-arg constructor 
Java :: jersey get session time 
Java :: No Duplicate Key on HashMap 
Java :: Execute method on load 
Java :: java herencia 
Java :: how to install java jdk 8 on ubuntu 20.04 for spark 
Java :: find namestart with name using strim in java 
Java :: stringbuffer concatenation in java 
Java :: java initialise array in return 
Java :: java domande risposta multipla 
Java :: bytecode into source code 
Java :: java filter list of dupllicate netries 
Java :: Java Intersection of Sets 
Java :: convert kotlin to java online editor 
Java :: array remove duplicate in java 
Java :: polymorphism vs overriding in java 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =