FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java-Programming/Online_Class/TestUserInput.java at master · SHembram18/Java-Programming · GitHub
SHembram18
Java-Programming
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java-Programming
/
Online_Class
/
TestUserInput.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 409 Bytes
Breadcrumbs
Java-Programming
/
Online_Class
/
TestUserInput.java
Copy path
File metadata and controls
17 lines (13 loc) · 409 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*Write a program to accept the input form user*/
import
java
.
util
.*;
class
TestUserInput
{
public
static
void
main
(
String
args
[])
{
int
num
;
Scanner
sc
=
new
Scanner
(
System
.
in
);
//Predefined class to accept input from keyboard
System
.
out
.
println
(
"Enter the value"
);
num
=
sc
.
nextInt
();
//Method is used from Scanner class
System
.
out
.
println
(
"The value of num is "
+
num
);
}
}
Back
|
FazBrowse Home
|
New Git URL