Click here to Skip to main content
15,899,313 members
Home / Discussions / Java
   

Java

 
AnswerRe: Output String returned from encryption/decryption Fuction into a text file???Help please!!!! Pin
427748018-Sep-09 17:54
427748018-Sep-09 17:54 
Questionhow to move cookie value from https to http page? [modified] Pin
sangeethanarayan17-Sep-09 21:54
sangeethanarayan17-Sep-09 21:54 
AnswerRe: https to http Pin
Nagy Vilmos17-Sep-09 21:57
professionalNagy Vilmos17-Sep-09 21:57 
AnswerRe: how to move cookie value from https to http page? Pin
427748018-Sep-09 18:32
427748018-Sep-09 18:32 
GeneralRe: how to move cookie value from https to http page? Pin
sangeethanarayan20-Sep-09 19:06
sangeethanarayan20-Sep-09 19:06 
QuestionWhich laguages does FreeTTS Supported. Pin
sharkbc17-Sep-09 17:01
sharkbc17-Sep-09 17:01 
AnswerRe: Which laguages does FreeTTS Supported. Pin
427748017-Sep-09 18:22
427748017-Sep-09 18:22 
QuestionMy code won't complile right in JCreator Pin
Dale Leach II17-Sep-09 13:38
Dale Leach II17-Sep-09 13:38 
I have a code I've been working on in JCreator for school and i can't seem to get it right. Will somebody please help me with this and tell me what I am doing wrong?

/* Author: Dale Leach
* Date: 9/15/09
* File: Goods Hands Program
* Desc: To find out if an auto is insurable.
*/

import java.io.*;

public class goodHands

{

// declare global scope variables

private BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

private String inputString;

public goodHands()throws IOException //I-O-P
{
initialize();
insureProcess();
cleanUp();
}//end constuctor

public void initialize()
{
System.out.println();
System.out.println("Welcome to the Goods Hands Program.");
System.out.println();

}// end initialize

public void insureProcess() throws IOException
// declare local variable for car choice
{

String carChoice;
boolean insurable = false;
int carYear;
boolean year = false;

System.out.println ("Please enter a car model: ");
inputString = input.readLine();
carChoice = inputString;

// Check Model for insurability
insurable = checkModel(carChoice);

// Check Year for insurability

System.out.println("Please enter year of car: ");
carYear = Integer.parseInt (input.readLine());

year = checkYear (carYear);
printResults(year);



// Print results based on insurability

}// end insureProcess


public boolean checkModel(String carChoice)
{ boolean insurable = false;
if (carChoice==("Ford") carChoice==("Chevy") carChoice.==("Toyota"))
insurable = true;
return insurable;

}// end checkModel

public boolean checkYear(int year)
{
boolean year = false;

if(carYear = 1990) year = true;
return year;


}// end checkYear

public void printResults(boolean insurable)
{
if (insurable);

System.out.println("Car is insurable.");

else
System.out.println("Sorry your car is not insurable.");
}// end printResults

public void cleanup()
{
System.out.println();
System.out.println("The Good Hands Program is complete.");
System.out.println("Have a nice day.");
}// end cleanup

public static void main(String [] args) throws IOException // main method
{
new goodHands();

} // end the main method

} // end the program
AnswerRe: My code won't complile right in JCreator Pin
427748017-Sep-09 15:55
427748017-Sep-09 15:55 
AnswerRe: My code won't complile right in JCreator Pin
David Skelly17-Sep-09 22:37
David Skelly17-Sep-09 22:37 
QuestionLooking for reading Material on Concurrent Programming in Java Pin
that_dude_tj17-Sep-09 8:43
that_dude_tj17-Sep-09 8:43 
AnswerRe: Looking for reading Material on Concurrent Programming in Java Pin
427748017-Sep-09 15:45
427748017-Sep-09 15:45 
GeneralRe: Looking for reading Material on Concurrent Programming in Java Pin
that_dude_tj18-Sep-09 13:59
that_dude_tj18-Sep-09 13:59 
Questionhow to implement text to speech converter in java Pin
gharekiran16-Sep-09 23:13
gharekiran16-Sep-09 23:13 
AnswerRe: how to implement text to speech converter in java Pin
TorstenH.17-Sep-09 0:05
TorstenH.17-Sep-09 0:05 
AnswerRe: how to implement text to speech converter in java Pin
427748017-Sep-09 15:44
427748017-Sep-09 15:44 
QuestionImplementing a "Paint Can"-type tool Pin
max2929716-Sep-09 14:21
max2929716-Sep-09 14:21 
AnswerRe: Implementing a "Paint Can"-type tool Pin
427748016-Sep-09 16:34
427748016-Sep-09 16:34 
GeneralRe: Implementing a "Paint Can"-type tool Pin
max2929716-Sep-09 16:40
max2929716-Sep-09 16:40 
AnswerRe: Implementing a "Paint Can"-type tool Pin
max2929716-Sep-09 16:57
max2929716-Sep-09 16:57 
GeneralRe: Implementing a "Paint Can"-type tool Pin
427748016-Sep-09 17:57
427748016-Sep-09 17:57 
GeneralRe: Implementing a "Paint Can"-type tool Pin
sharkbc17-Sep-09 0:11
sharkbc17-Sep-09 0:11 
Questiontapi in java Pin
kareemmahammed11-Sep-09 17:59
kareemmahammed11-Sep-09 17:59 
AnswerRe: tapi in java Pin
427748011-Sep-09 20:44
427748011-Sep-09 20:44 
Questionjava.security.InvalidKeyException, Can somebody Help Me!! Pin
ChiSmile10-Sep-09 3:57
ChiSmile10-Sep-09 3:57 

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.