Java EE SDK :: Airline Booking Engine - View Completed Booking Ticket Details Continually In Each 30 Seconds
Aug 17, 2012
I am involving in airline booking engine project.
There is a requirement to view a completed booking ticket details continually in each 30 seconds.
Application is already developed using struts / spring and deployed on jBoss server.
I heard spring scheduler and queues. Which is the better solution?
View Replies
ADVERTISEMENT
Oct 26, 2014
I am doing a pretty basic program with a fixed origin city and five destination cities. I am having trouble with entering passenger details. This is what I tried, but then I cannot retain all passenger details to print later on in the final ticket.
System.out.println("Enter flight details of child passengers (below 12 years)");
System.out.println("Enter Name");
for(a = 1; a <= cp; ++a)
{
//cp is number of child passengers, a is loop variable
String name = br.readLine();
System.out.println("1. " + name);
}
View Replies
View Related
Sep 22, 2014
Whenever i see online ticket booking site one question arise, How ticket booked in one site reflect in other site.
If i book 2 ticket from PVR online portal that two ticket will be showed as booked in bookmyshow.com, which technology is used for this and how.
View Replies
View Related
Oct 29, 2014
import java.io.*;
public class Booking {
private Customer[] [] booking = new Customer [7] [tables];
private int count = tables;
private String restaurant;
[Code] ......
View Replies
View Related
Sep 24, 2014
I am doing the home work to create a mini hotel reservation system which should be able to write the data into .txt file.
case study:
1. Have 2 different types of room (1- Suite 2- Deluxe)
2. Room Rate (Suite - $500per night, Deluxe - $300per night)
3. Both rooms can accomodate 2adults and 2childs
4. Checkin time: 2pm, Checkout 11am
5. Room status = occupied once guest checkin, Room status = vacant once guest checkout
6.For checking require (ID,Full Name,Address,Nationality,Flight no/Vehicle Reg no,number of people,check-in date, check-out-date,payment detail
7.Front desk search the vacant room to be assigned to the guest
Functions:
1. View all rooms
2. Add Customer to a room
3. Display available room
4. Delete customer from a room
5. Find room from customer name
6. Exit
Files:
One file use to store room info. (to be retrieved by program)
One file use to store rate info. (to be retrieve by program)
One file use to store the booking details (to be created and write by the program).
Currently I have write a program but only compiling and display the output to the console. How to modify my code below to be able to save to the .txt file
Here is the code:
import java.util.*;
import java.io.*;
class Customer {
private String name;
private int room;
public void setName(String name) {
this.name=name;
[code]...
View Replies
View Related
Apr 20, 2015
I need to write out code for a seat booking system. So far I have the seats displayed but when I ask the user to enter their seat column and row I don't know how to mark out that specific seat they have booked with an X or such? This is what I've done so far.
import java.util.Scanner;
public class show2
{
public static final int column = 20;
public static final int row = 10;
public static void makeReservations(int[][] seatarray, Scanner input)
[Code] ....
View Replies
View Related
Oct 6, 2014
I made an Analog Clock and its working but when a remove the filloval (Background) the seconds hand keep repeating itself..here is the code
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import javax.swing.JFrame;
import javax.swing.JPanel;
[code]....
View Replies
View Related
Mar 23, 2014
I am building a room management system in Java (Netbeans) and Ms Access. The jasper report is only showing code (source view) instead of design view. The GUI JFrame and Login JFrame are not displaying records in the database and the buttons are not working. Also the labels and text fields are not neatly arranged. The connection to the database is not displaying records.
Connection to the database. COIRMS.java
package Login;
import java.sql.*;
public class COIRMS {
Connection con;
Statement st;
ResultSet rs;
public COIRMS ()
[Code] ....
View Replies
View Related
May 6, 2014
i am trying to do a program captures keystroke and mouseclick from user in a textarea and insert the details intoa text file using java. Mainly such as delay between keys, no. of times backspace being pressed, alt tab press and copy paste mouse click.
View Replies
View Related
Nov 26, 2014
users are trying saving or updating incident request on website they are able to see fault string =Java.lang.stackoverflow : null when saving or updating ticket request on flex with Java hibernate.
View Replies
View Related
Oct 5, 2014
So I can only get 1 tile to render Okay so now it's no tiles Nvm.
Window
import java.awt.BorderLayout;
import java.awt.HeadlessException;
import java.awt.image.BufferStrategy;
import javax.swing.JFrame;
[code]....
View Replies
View Related
Feb 2, 2014
I am currently learning recursion, and i have a query. I have a program that receives user input, and outputs the decimal input into binary form. In my recursive function, I have a if else loop to check if operation is completed.
public static int Converter(int input, int weight) {
System.out.printf("Input is now %d, weight is now %d
",input,weight);
if(input==0) {
return 0;
[Code] .....
The final return, when input finally hits zero is concatenating 0 to whatever i have this far. e.g. Decimal 10 should give 1010, but because of the "return 0", instead of getting 1010+0, i am getting 10100.
I can solve the problem by creating a variable sum,and passing along, but i am just curious why the final return 0 is giving me not a +0, but a concatenate 0.
View Replies
View Related
Jul 15, 2014
Any method of viewing the contents of an .ISO in java. my searches so far have said to use the java api loopy but I cant find hardly any information on it and i have been unable to use it correctly so far. If there is no way to just view the .ISO file contents then extracting its contents and then viewing them would also be fine how to do that.
View Replies
View Related
Jul 15, 2014
Any method of viewing the contents of an .ISO in java. my searches so far have said to use the java api loopy but I cant find hardly any information on it and i have been unable to use it correctly so far. If there is no way to just view the .ISO file contents then extracting its contents and then viewing them would also be fine ....
View Replies
View Related
Feb 23, 2015
I have a boolean array that looks like this
boolean seat[][] = new boolean[2][3];
I reserved one row for first class and another for economy class. This code works just as I want but my question is how can I loop through it so I don't need all the if statements? I tried it many ways. I tried something like this but I cant get it to work.
for (int row=0;row<seat.length;row++{
for (int col=0;col<seat[row].length;col++){
if (seat[0][col]==false){
seat[0][col]=true;
System.out.println("You have number 0" + row + in first class);
[Code] ......
View Replies
View Related
Mar 22, 2014
class test{//class
public static void main(String[]args) {
String booking [][]= new String [30] [6] ;//two dimensional array
System.out.println("Enter the seat column you want");//column entry
char column=Keyboard.readChar();
System.out.println("Enter the seat row you want");//row entry
int row=Keyboard.readInt();
[code]...
cant get my in put to go in to the index
View Replies
View Related
Oct 9, 2014
My assignment was to create a priority queue for Airline Passengers. Here is what I have done so far:
//Driver
package priorityqueuestandby;
import java.util.NoSuchElementException;
import javax.swing.JOptionPane;
public class PriorityQueueStandBy {
public static void main(String[] args) {
[Code] .....
So the part that I cant figure out is:
When a standby passenger is to be enqueued into the priority queue, it must be done so that at the moment of each dequeue operation, the item at the head of the queue is the standby passenger with the longest longevity, and also so that passengers with the same longevity are dequeued in a first-come-first-served fashion.
he says that we need to "Make your program so that it extends Comparable and implements the compareTo() method properly..."
So I was looking at the Comparable class and I could't find a compareTo() method... I am not confident I know how extends works either. I am assuming I need a new class if I am going to be extending another class. Right now I am taking in longevity as a String and converting it to an int because my last ditch effort is going to be to set up a loop that will organize longevity into a/an circular array based on the size of the incoming integer.
View Replies
View Related
Feb 25, 2014
I want to execute my jsp code to compare two dates after every 10 seconds if user enter date and current sys date are equal it will send the mail to the user automatically. Below is my jsp code
this if condition i want to check the date after every 10 seconds and when two dates are equal it will send the mail using below mail code
if(ExpcReDt.compareTo(dateStr)>0) {
out.println("Expected return date is greater than current date");
}
else if(ExpcReDt.compareTo(dateStr)==0)
[code]....
View Replies
View Related
Sep 27, 2014
I have this Contact List program and im stuck on how to make my contact list show their different details. I don't know what to do , I want my program to be like this. What should I do next to make my every entry have different information then show on to the right side of the panel the information when i click the show details button .
package phonebook;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
[Code] ....
View Replies
View Related
Jul 11, 2014
How can I time my while loop to executeevery 3 seconds?
Here is my code:
class Info{
public String name;
public String version;
public String arch;
double CPUSpeed;
};
Info info = new Info();
Info[] queue = new Info[100];
[Code]...
I seem to have done it right, but it doesn't work... What is wrong?
View Replies
View Related
Apr 13, 2014
String must be 6 characters, first 3 must be letters, last 3 must be digits..Here is my code:
import java.util.Scanner;
public class ValidTicket {
public static void main (String[] args){
Scanner in = new Scanner (System.in);
String id;
int c=' ',i;
int letterCount=0, digitCount=0;
System.out.printf("Enter ticked id
[code]....
However when I run my program, it does not work:After I enter the string nothing happens.
View Replies
View Related
Dec 3, 2014
I have one jsp page in which I have listed some service records fetched from Database. I have made one of the column, for eg. Service ID to be link, which should display all the details of that service when clicked. I want those details to be displayed in lightbox. I tried doing it but when any service ID link is clicked, it displays same(First Service in record) service details.How do I pass reference of that current service to lighbox effect.
View Replies
View Related
Apr 8, 2014
I am trying to convert time in seconds to hhmmss format.How do i get the minutes and seconds.
View Replies
View Related
Jan 5, 2015
public class TextLab03st
{
public static void main(String args[])
{
System.out.println("Text Lab 03");
System.out.println();
System.out.print("What is the posted speed limit? --> ");
int speedLimit = Expo.enterString();
System.out.println("");
System.out.print("How fast was the car travelling in mph? --> ");
int trueSpeed = Expo.enterString();
int ticketPrice;
[code]...
I tried everything and there's supposedly one error saying it reached the end of the file while parsing. I'm trying to make a speeding ticket program for my class.
View Replies
View Related
Feb 18, 2014
Create a Java application that prompts the user to enter their personal details: First name, last name, gender, address, suburb, postcode, and phone number. Then the program displays all of your personal details to the screen as illustrated. Name the file PersonDetails.jav
package exe
import java.util.*;
public class Review2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter your full name: ");
String name = scanner.next();
[Code]...
If you cant tell straight away how i have stuffed up, what is happening is this;
When i am promoted to enter my name, 'John Smith'. The word 'John' would be stored in the name variable, while 'Smith' is stored under gender, so the next prompt is then 'Whats your address?'
So its only assigning one word per variable, now as far i understand, a string should not work that way. So where is my mistake?
View Replies
View Related
Feb 20, 2015
When I run my program and choose option 2 to get contact details I am expecting it to display as follows (First Name, Last Name): Contacts how have been entered:
0) John Doe
1) George Smith
2) Nancy Davis
Please enter the number corresponding to the contact you would like to view:
Instead for a personal contact it is displaying as follows:Contacts who have been entered:
0) Doe 1 F St. (last name, address)
Please enter the number corresponding to the contact you would like to view:
Instead for a business contact it is displaying as follows:Contacts who have been entered:
0) 1 F St. jd@gmail.com (address, email)
Please enter the number corresponding to the contact you would like to view:
Then when I enter the number to display the contact for personal it is returning me only first name and business is only returning me first and last name. It should be returning the full contact info that was put in during the add contact step. I thought I programmed everything properly but it isn't displaying what I want to seeMy code is listed below.
ContactList
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package contactlist;
import java.util.ArrayList;
import java.util.Scanner;
[code]....
View Replies
View Related