Revision: 69718
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 21, 2015 17:27 by indecs
Initial Code
import java.io.*;
public class Practive{
public static void main (String[] args){
strmanip();
}
static void strmanip(){
String name ="";
String password="";
try{
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Create a new user name");
name = read.readLine();
System.out.println("Create a new password");
password=read.readLine();
}catch (IOException e){}
if (password.length()>8)
System.out.println("Welcome "+ name +"!");
else System.out.println("Your password must be greater than 8 characters");
}
}
Initial URL
Initial Description
a piece of code
Initial Title
[Note] BufferedReader and length()
Initial Tags
Initial Language
Java