---
title: "Problem in taken input from console"  
description: "Problem in taken input from console"  
author: "sourabh kumar"  
published: 2011-03-01  
updated: 2011-03-01  
canonical: https://www.mindstick.com/forum/179/problem-in-taken-input-from-console  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# Problem in taken input from console

how to taken [input](https://www.mindstick.com/forum/159209/how-can-i-read-convert-an-input-stream-into-a-string-in-java) from [console](https://www.mindstick.com/blog/210/the-console-class) in [java](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming)?\
give the syntax in java\

## Replies

### Reply by Amit Singh

in java we take an input from console using bufferreader class\
**for example:**\
\
**BufferedReader reader = new BufferedReader(System.in);\
String input = reader.readLine();\** \


---

Original Source: https://www.mindstick.com/forum/179/problem-in-taken-input-from-console

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
