Click here to Skip to main content
15,912,400 members
Home / Discussions / Java
   

Java

 
QuestionMobile Application Pin
cdpace2-Jun-09 23:40
cdpace2-Jun-09 23:40 
AnswerRe: Mobile Application Pin
Nagy Vilmos3-Jun-09 0:08
professionalNagy Vilmos3-Jun-09 0:08 
Questionretrieving selected item from jComboBox in jTable Pin
Denis J. González1-Jun-09 9:16
Denis J. González1-Jun-09 9:16 
AnswerRe: retrieving selected item from jComboBox in jTable Pin
darkdragn1-Jun-09 9:25
darkdragn1-Jun-09 9:25 
GeneralRe: retrieving selected item from jComboBox in jTable Pin
Denis J. González1-Jun-09 9:43
Denis J. González1-Jun-09 9:43 
QuestionMobile Programming Pin
Sourie30-May-09 19:28
Sourie30-May-09 19:28 
AnswerRe: Mobile Programming Pin
raheela12331-May-09 1:22
raheela12331-May-09 1:22 
Questionproblem in do-while loop Pin
kenna18030-May-09 4:58
kenna18030-May-09 4:58 
The loop cant be stop eventho the key-in matches. Can anyone fix this and tell me my mistake?
Greatly appreciate it if so!


<br />
import java.io.*;<br />
<br />
public class A<br />
{<br />
public static void main(String args[]) throws IOException<br />
{<br />
BufferedReader stdin=new BufferedReader (new InputStreamReader(System.in));<br />
//char n,p;<br />
String name,pwd;<br />
int n1;<br />
int p2;<br />
<br />
System.out.println("\tWelcome to  ");<br />
System.out.println("*******SHINE IT Training Centre*******");<br />
System.out.println("**Please login before u calculate**");<br />
<br />
do<br />
{<br />
System.out.println("Enter user name: ");<br />
name=stdin.readLine();<br />
n1=Integer.parseInt(name);<br />
System.out.println("Enter password: ");<br />
pwd=stdin.readLine();<br />
p2=Integer.parseInt(pwd);<br />
<br />
//System.out.println("Incorrect input!!");<br />
} while ((name!="2208")&&(pwd!="1234"));<br />
<br />
<br />
System.out.println("Successful Login!!");<br />
<br />
}<br />
}<br />

AnswerRe: problem in do-while loop Pin
raheela12331-May-09 1:15
raheela12331-May-09 1:15 
GeneralRe: problem in do-while loop Pin
kenna18031-May-09 7:04
kenna18031-May-09 7:04 
QuestionUsing NetBeans IDE Pin
Reagan Conservative29-May-09 11:03
Reagan Conservative29-May-09 11:03 
AnswerRe: Using NetBeans IDE Pin
fly90429-May-09 11:32
fly90429-May-09 11:32 
GeneralRe: Using NetBeans IDE Pin
Reagan Conservative29-May-09 11:36
Reagan Conservative29-May-09 11:36 
GeneralRe: Using NetBeans IDE Pin
fly90429-May-09 11:45
fly90429-May-09 11:45 
QuestionHelp!! Pin
WebMaster29-May-09 0:47
WebMaster29-May-09 0:47 
AnswerRe: Help!! Pin
Nagy Vilmos29-May-09 1:09
professionalNagy Vilmos29-May-09 1:09 
AnswerRe: Help!! Pin
Cedric Moonen29-May-09 1:40
Cedric Moonen29-May-09 1:40 
QuestionReading Barcode from an Image Pin
raheela12327-May-09 22:19
raheela12327-May-09 22:19 
AnswerRe: Reading Barcode from an Image Pin
Member 827588228-Sep-11 10:00
Member 827588228-Sep-11 10:00 
Questionhow to overload methods in a webservice using netbeans Pin
prasadbuddhika27-May-09 1:39
prasadbuddhika27-May-09 1:39 
QuestionCompare java and c# Pin
cotdot1111124-May-09 15:23
cotdot1111124-May-09 15:23 
AnswerRe: Compare java and c# Pin
Philip.F27-May-09 1:33
Philip.F27-May-09 1:33 
GeneralRe: Compare java and c# Pin
cotdot1111127-May-09 3:06
cotdot1111127-May-09 3:06 
QuestionFile not being read by JSP Pin
Fahim A Salim23-May-09 4:34
Fahim A Salim23-May-09 4:34 
AnswerRe: File not being read by JSP Pin
adatapost26-May-09 1:49
adatapost26-May-09 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.