Java Log In

code for Java Log In

Page 1 of 1

3 Replies - 1472 Views - Last Post: 13 December 2008 - 10:47 PM Rate Topic: -----

#1 iceangelfire17   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 28-November 08

Java Log In

Posted 13 December 2008 - 06:12 AM

any idea of making a java Log In? how could make it..thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Java Log In

#2 saumya9888   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 39
  • Joined: 08-August 08

Re: Java Log In

Posted 13 December 2008 - 06:34 AM

View Posticeangelfire17, on 13 Dec, 2008 - 05:12 AM, said:

any idea of making a java Log In? how could make it..thanks

Java Log In?? Please illustrate and show some code u've tried or logic you have worked out...
Was This Post Helpful? 0
  • +
  • -

#3 William_Wilson   User is offline

  • lost in compilation
  • member icon

Reputation: 207
  • View blog
  • Posts: 4,812
  • Joined: 23-December 05

Re: Java Log In

Posted 13 December 2008 - 07:24 AM

Java login is rather vague as well. Are you looking for a website applet login, an application login, a basic GUI implementation, command line implementation?

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#4 iceangelfire17   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 28-November 08

Re: Java Log In

Posted 13 December 2008 - 10:47 PM

here is my code, its quite simple but there is some error i cant understand.
in the if statement how could i make two statements in one conditions.

i want that if the userID=UserNo it will make another statement such as
if (userID==UserNo);
resultID= 1;
if (UserPin == Pin);
resultPin = 1;
if (resultPin==resultID){
system.out.println("yourlogin")


here is my code



import java.io.*;

class PINnumber {
public static void main (String[] args) throws IOException {

BufferedReader x = new BufferedReader
(new InputStreamReader(System.in));

BufferedReader y = new BufferedReader
(new InputStreamReader(System.in));


int UserID;
int UserNo = 111;
int Pin;
int UserPin = 1234;
int resultID;
int resultPin;




System.out.print ("Enter UserID : ");
UserID = Integer.parseInt( x.readLine());

System.out.print ("Enter Pin : ");
Pin = Integer.parseInt( y.readLine());


//operation

if (UserID ==User)
;
resultID = 001;

if (UserPin == Pin)
;
resultPin= 001;

if (resultID == resultPin)
{
System.out.println("Your Log In");
}






}


}
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1