Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  HelloWorld.java
Language: JAVA
Code:
import java.lang.*;
import java.util.*;
public class HelloWorld{
     public static void main(String []args){
        Scanner s = new Scanner(System.in);
        System.out.println("Enter the value of a: ");
        int a = s.nextInt();
       System.out.println("Enter the value of str: ");
        String str = s.nextLine();
        System.out.println("value of a: "+a);
        System.out.println("value of str: "+str);
     }
}          
Comments: