I need help with my project [Navigator application acesible thru the phone]

I am currently working on my project proposal for the project i want to do. I need to develop a navigator appliation that is accesible thru a phone and hsa the following features:
1. Load image in display buffer and deending on wat user inputs, then i can manipulate the image and draw stuff on it like if the user requires the shortest route, then it can be drawn...
2. Provide traffic updates from rss feeds [online]- in this case i need to know how to use the http request class in J2ME wireless toolkit.
3. Incorporate GPS System or if any other otpion is there for me to be able to tell the location of a user dynamically and use that info to map the location on the map image in the display buffer
4. Provide info about places using pop ups depending on what the user inputs
5 general advice on MIDP development esp that its different from wat am used to [desktop programming]...
The biggest challenge is that am new to mobile apps esp MIDP,Am a student in my final year, and the proosal is this coming week and ineed some help [or should i say breakthrough] SOMEBODY HELP ME..!!

Sup mismis ,
Its a shame to say this but am so new to this i would bore you to death coz i have little (if any soultions)...but i believe if we work together we can go far...
The gps part was quite as process because either way, i had to go thru a 3rd party to get the service, so wat i said i will do is simulate a gpsi.e have a sub component on the side that simultes a gps (as i believe it return the latiotude and longitude positions of wea u are) then using this info i can trace on which region of the map you fall in depending on what mesh u fall in, is that simple or wat?
The othe rthing is that am using J2ME which am not familiar alot wih. Ive used netbeans but for desktop applications not mobile....
But i also have a question, since the whole app would be better on the mobile fully, how do u include the dbase?

Similar Messages

  • I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in

    I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio 2013?

    For MS Visio (any version) only the appropriate version of Acrobat *PRO* provides PDFMaker for Visio.
    For Visio 2013 specifically you must have Acrobat XI Pro (updated to at least 11.0.1).
    See: 
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html  
    Be well...

  • I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio

    I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter  plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio 2013?

    For MS Visio (any version) only the appropriate version of Acrobat *PRO* provides PDFMaker for Visio.
    For Visio 2013 specifically you must have Acrobat XI Pro (updated to at least 11.0.1).
    See: 
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html  
    Be well...

  • Need help with calculator project for an assignment...

    Hi all, I please need help with my calculator project that I have to do for an assignment.
    Here is the project's specifications that I need to do"
    """Create a console calculator applicaion that:
    * Takes one command line argument: your name and surname. When the
    program starts, display the date and time with a welcome message for the
    user.
    * Display all the available options to the user. Your calculator must include
    the arithmetic operations as well as at least five scientific operations of the
    Math class.
    -Your program must also have the ability to round a number and
    truncate it.
    -When you multiply by 2, you should not use the '*' operator to perform the
    operation.
    -Your program must also be able to reverse the sign of a number.
    * Include sufficient error checking in your program to ensure that the user
    only enters valid input. Make use of the String; Character, and other
    wrapper classes to help you.
    * Your program must be able to do conversions between decimal, octal and
    hex numbers.
    * Make use of a menu. You should give the user the option to end the
    program when entering a certain option.
    * When the program exits, display a message for the user, stating the
    current time, and calculate and display how long the user used your
    program.
    * Make use of helper classes where possible.
    * Use the SDK to run your program."""
    When the program starts, it asks the user for his/her name and surname. I got the program to ask the user again and again for his/her name and surname
    when he/she doesn't insert anything or just press 'enter', but if the user enters a number for the name and surname part, the program continues.
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??
    Here is the programs code that I've written so far:
    {code}
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Project {
         private static String nameSurname = "";     
         private static String num1 = null;
         private static String num2 = null;
         private static String choice1 = null;
         private static double answer = 0;
         private static String more;
         public double Add() {
              answer = (Double.parseDouble(num1) + Double.parseDouble(num2));
              return answer;
         public double Subtract() {
              answer = (Double.parseDouble(num1) - Double.parseDouble(num2));
              return answer;
         public double Multiply() {
              answer = (Double.parseDouble(num1) * Double.parseDouble(num2));
              return answer;
         public double Divide() {
              answer = (Double.parseDouble(num1) / Double.parseDouble(num2));
              return answer;
         public double Modulus() {
              answer = (Double.parseDouble(num1) % Double.parseDouble(num2));
              return answer;
         public double maximumValue() {
              answer = (Math.max(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double minimumValue() {
              answer = (Math.min(Double.parseDouble(num1), Double.parseDouble(num2)));
              return answer;
         public double absoluteNumber1() {
              answer = (Math.abs(Double.parseDouble(num1)));
              return answer;
         public double absoluteNumber2() {
              answer = (Math.abs(Double.parseDouble(num2)));
              return answer;
         public double Squareroot1() {
              answer = (Math.sqrt(Double.parseDouble(num1)));
              return answer;
         public double Squareroot2() {
              answer = (Math.sqrt(Double.parseDouble(num2)));
              return answer;
         public static String octalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
    String octal1 = Integer.toOctalString(iNum1);
    return octal1;
         public static String octalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String octal2 = Integer.toOctalString(iNum2);
              return octal2;
         public static String hexadecimalEquivalent1() {
              int iNum1 = Integer.parseInt(num1);
              String hex1 = Integer.toHexString(iNum1);
              return hex1;
         public static String hexadecimalEquivalent2() {
              int iNum2 = Integer.parseInt(num2);
              String hex2 = Integer.toHexString(iNum2);
              return hex2;
         public double Round1() {
              answer = Math.round(Double.parseDouble(num1));
              return answer;
         public double Round2() {
              answer = Math.round(Double.parseDouble(num2));
              return answer;
              SimpleDateFormat format1 = new SimpleDateFormat("EEEE, dd MMMM yyyy");
         Date now = new Date();
         SimpleDateFormat format2 = new SimpleDateFormat("hh:mm a");
         static Date timeIn = new Date();
         public static long programRuntime() {
              Date timeInD = timeIn;
              long timeOutD = System.currentTimeMillis();
              long msec = timeOutD - timeInD.getTime();
              float timeHours = msec / 1000;
                   return (long) timeHours;
         DecimalFormat decimals = new DecimalFormat("#0.00");
         public String insertNameAndSurname() throws IOException{
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        while (nameSurname == null || nameSurname.length() == 0) {
                             for (int i = 0; i < nameSurname.length(); i++) {
                             if ((nameSurname.charAt(i) > 'a') && (nameSurname.charAt(i) < 'Z')){
                                       inputCorrect = true;
                        else{
                        inputCorrect = false;
                        break;
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your name and surname: ");
                             nameSurname = inStream.readLine();
                             inputCorrect = true;
                        }catch (IOException ex) {
                             System.out.println("You did not enter your name and surname, " + nameSurname + " is not a name, please enter your name and surname :");
                             inputCorrect = false;
                        System.out.println("\nA warm welcome " + nameSurname + " ,todays date is: " + format1.format(now));
                        System.out.println("and the time is now exactly " + format2.format(timeIn) + ".");
                        return nameSurname;
              public String inputNumber1() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter a number you want to do a calculation with and hit <ENTER>: ");
                             num1 = br.readLine();
                             double number1 = Double.parseDouble(num1);
                             System.out.println("\nThe number you have entered is: " + number1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("\nYou did not enter a valid number: " + "\""+ num1 + "\" is not a number!!");
                             inputCorrect = false;
                        return num1;
         public String calculatorChoice() throws IOException {
              System.out.println("Please select an option of what you would like to do with this number from the menu below and hit <ENTER>: ");
              System.out.println("\n*********************************************");
              System.out.println("---------------------------------------------");
              System.out.println("Please select an option from the list below: ");
              System.out.println("---------------------------------------------");
              System.out.println("1 - Add");
              System.out.println("2 - Subtract");
              System.out.println("3 - Multiply");
              System.out.println("4 - Divide (remainder included)");
              System.out.println("5 - Maximum and minimum value of two numbers");
              System.out.println("6 - Squareroot");
              System.out.println("7 - Absolute value of numbers");
              System.out.println("8 - Octal and Hexadecimal equivalent of numbers");
              System.out.println("9 - Round numbers");
              System.out.println("0 - Exit program");
              System.out.println("**********************************************");
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("Please enter your option and hit <ENTER>: ");
                             choice1 = inStream.readLine();
                             int c1 = Integer.parseInt(choice1);
                             System.out.println("\nYou have entered choice number: " + c1);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid choice number: " + "\""+ choice1 + "\" is not in the list!!");
                             inputCorrect = false;
                        return choice1;
         public String inputNumber2() throws IOException {
              boolean inputCorrect = false;
                   while (inputCorrect == false) {
                        try {
                             BufferedReader br2 = new BufferedReader (new InputStreamReader(System.in));
                             System.out.print("\nPlease enter another number you want to do the calculation with and hit <ENTER>: ");
                             num2 = br2.readLine();
                             double n2 = Double.parseDouble(num2);
                             System.out.println("\nThe second number you have entered is: " + n2);
                             System.out.println("\nYour numbers are: " + num1 + " and " + num2);
                             inputCorrect = true;
                        } catch (NumberFormatException nfe) {
                             System.out.println("You did not enter a valid number: " + "\""+ num2 + "\" is not a number!!");
                             inputCorrect = false;
                        return num2;
         public int Calculator() {
              int choice2 = (int) Double.parseDouble(choice1);
              switch (choice2) {
                        case 1 :
                             Add();
                             System.out.print("The answer of " + num1 + " + " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 2 :
                             Subtract();
                             System.out.print("The answer of " + num1 + " - " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 3 :
                             Multiply();
                             System.out.print("The answer of " + num1 + " * " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 4 :
                             Divide();
                             System.out.print("The answer of " + num1 + " / " + num2 + " is: " + decimals.format(answer));
                             Modulus();
                             System.out.print(" and the remainder is " + decimals.format(answer));
                             break;
                        case 5 :
                             maximumValue();
                             System.out.println("The maximum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             minimumValue();
                             System.out.println("The minimum number between the numbers " + num1 + " and " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 6 :
                             Squareroot1();
                             System.out.println("The squareroot of value " + num1 + " is: " + decimals.format(answer));
                             Squareroot2();
                             System.out.println("The squareroot of value " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 7 :
                             absoluteNumber1();
                             System.out.println("The absolute number of " + num1 + " is: " + decimals.format(answer));
                             absoluteNumber2();
                             System.out.println("The absolute number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 8 :
                             octalEquivalent1();
                             System.out.println("The octal equivalent of " + num1 + " is: " + octalEquivalent1());
                             octalEquivalent2();
                             System.out.println("The octal equivalent of " + num2 + " is: " + octalEquivalent2());
                             hexadecimalEquivalent1();
                             System.out.println("\nThe hexadecimal equivalent of " + num1 + " is: " + hexadecimalEquivalent1());
                             hexadecimalEquivalent2();
                             System.out.println("The hexadecimal equivalent of " + num2 + " is: " + hexadecimalEquivalent2());
                             break;
                        case 9 :
                             Round1();
                             System.out.println("The rounded number of " + num1 + " is: " + decimals.format(answer));
                             Round2();
                             System.out.println("The rounded number of " + num2 + " is: " + decimals.format(answer));
                             break;
                        case 0 :
                             if (choice2 == 0) {
                                  System.exit(1);
                             break;
                   return choice2;
              public String anotherCalculation() throws IOException {
                   boolean inputCorrect = false;
                   while (inputCorrect == false) {
                             try {                              
                                  BufferedReader br3 = new BufferedReader (new InputStreamReader(System.in));
                                  System.out.print("\nWould you like to do another calculation? Y/N ");
                                  more = br3.readLine();
                                  String s1 = "y";
                                  String s2 = "Y";
                                  if (more.equals(s1) || more.equals(s2)) {
                                       inputCorrect = true;
                                       while (inputCorrect = true){
                                            inputNumber1();
                                            System.out.println("");
                                            calculatorChoice();
                                            System.out.println("");
                                            inputNumber2();
                                            System.out.println("");
                                            Calculator();
                                            System.out.println("");
                                            anotherCalculation();
                                            System.out.println("");
                                            inputCorrect = true;
                                  } else {
                                       System.out.println("\n" + nameSurname + " thank you for using this program, you have used this program for: " + decimals.format(programRuntime()) + " seconds");
                                       System.out.println("the program will now exit, Goodbye.");
                                       System.exit(0);
                             } catch (IOException ex){
                                  System.out.println("You did not enter a valid answer: " + "\""+ more + "\" is not in the list!!");
                                  inputCorrect = false;
              return more;
         public static void main(String[] args) throws IOException {
              Project p1 = new Project();
              p1.insertNameAndSurname();
              System.out.println("");
              p1.inputNumber1();
              System.out.println("");
              p1.calculatorChoice();
              System.out.println("");
              p1.inputNumber2();
              System.out.println("");
              p1.Calculator();
                   System.out.println("");
                   p1.anotherCalculation();
                   System.out.println("");
    {code}
    *Can you please run my code for yourself and have a look at how this program is constructed*
    *and give me ANY feedback on how I can better this code(program) or if I've done anything wrong from your point of view.*
    Your help will be much appreciated.
    Thanks in advance

    Smirre wrote:
    Now my question is this: How can I restrict the user to only enter 'letters' (and spaces of course) but allow NO numbers for his/her surname??You cannot restrict the user. It is a sad fact in programming that the worst bug always sits in front of the Computer.
    What you could do is checking the input string for numbers. If it contains numbers, just reprompt for the Name.
    AND you might want to ask yourself why the heck a calculator needs to know the users Name.

  • I need help with my videos now that I downloaded the ios6.  It won't play.

    I need help with my videos. I downloaded the ios6 and now they won't play.  Does anyone know how to fix?

    Wanted to let everyone know that after looking at other discussions I did a hard reboot and it is now working.  Love this site!

  • Need help with a project

    Hi,
    I'm a final year engineering student doing my project on cloud computing. Our project is a web application developed which concerns the issue of cloud security.Our lecturers asked us to put it on the cloud instead of showing it as a web application. So we
    are trying the trial version of Windows Azure. I need help in putting my project on to the cloud. Please help regarding this as soon as possible... 
    We are using Apache tomcat, JDK 1.6, Wamp server for our web application and we have developed this using netbeans IDE
    Very Urgent!!!

    Hello there, if you're still looking for help you might not be in the right forum.  This fourm is all about Azure SQL Database.

  • Need help with MS Project

    Hi All,
    My PM has asked me to prepare a project plan but I am quite new to MS project (in fact this is the first time I am creating a complete project plan) and any project management software as such.
    My requirements is that I have three different entities (A, B, C) responsible for the tasks in the project. I have created separate custom fields for each and entered their name against the tasks. Now, I need to include % of work completed for each of them
    separately so that each task can be independently tracked against the entity responsible. Some of them are combined tasks where in A & B are to complete those and some are individual.
    For example, Task 1: A - 50%, B - 30%, C - 60% 
    Task 2: B - 75% etc.
    So I added % of Work Completed against each entity (in adjacent columns), but when I update one it gets reflected in the other columns as well.
    Is this the right way to do it? Is there any other way to do it? Plz help.
    Regards,
    Ahmed

    Hi Ahmed,
    If I understand your question correctly, I think you can use Task Usage view to manage individual/entity % work completed against a particular task.
    I have tried to put together an example:
    I have assigned the entities (resources) against each task
    and then used the Task Usage where I've inserted the %work completed to track entities (resources) against each task
    There are also other options/views that can be used, like Resource Usage
    Hope this helps
    Paul

  • I am having difficulty playing most pogo games and need help with it. I have down loaded the recent version of java and am still unable to get the games to load. Is someone able to please help me ? Thank- You

    I am seriously needing some help and guidance in getting my mac to help me play pogo games. I will be thrilled with any help to show and tell me what to do. Thank-You so much !

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • Need help with determining which Credit Card would be the best

    Here is my situation. Currently only have one credit card, BoA Alaskan Airlines (since 2008) that is pretty much maxed, $6k balance on a $7k limit. I would like to open another card with a 0% balance transfer to help me pay this down as well as lower my utilization.  I have solid credit history, no delinquents and have perfect payment history. No current loans or installment payments and last credit check was earlier this year, a 704 with Experien. I have been comparing the Chase Freedom, Slate and Discover IT and wanted to see what your experiences were and what chances you think I have of qualifying for each card. Which card would be best for my situation? Thanks in advance.   

    runergrl wrote:
    Here is my situation. Currently only have one credit card, BoA Alaskan Airlines (since 2008) that is pretty much maxed, $6k balance on a $7k limit. I would like to open another card with a 0% balance transfer to help me pay this down as well as lower my utilization. Nothing will be best for that situation other than paying down the balance on that card.  Revolving utilization is a major scoring and risk factor.  It falls under Amounts Owed below:http://www.myfico.com/crediteducation/whatsinyourscore.aspx With 85% utilization you're going to have a hard time getting approved.  Even if approved you're going to get a low limit and a high APR.  Don't count on a new card to reduce your utilization. runergrl wrote:
    I have been comparing the Chase Freedom, Slate and Discover IT and wanted to see what your experiences were and what chances you think I have of qualifying for each card. Which card would be best for my situation?Let me give you an example of how constricting high utilization can be.  I was in a similar boat but I had more cards and, aside from utilization over 60% a solid credit profile in good standing.  However, Chase would only approve me for a $2K Slate with the highest APR offered at the time.  It was completely useless.  I was able to get my utilization down to under 10% (I think close to 2%) 6 months later.  At that point I had 2 instant approvals within a day of each other.  Each of those Chase cards were approved for $25K.  Approvals at that point were qualifying for the lowest APR on cards with ranges. I'm not saying that you'll get $25K when you lower your utilization.  Again, just demonstrating how constricting high utilization can be, If you're going to app then you want your credit to be in the best possible shape.  At 85% on your only card you're a long way from that.  I know that's not what you want to hear but it would be unreaslistic IMO to encourage to to expect a card useful for BT and for lowering your utilization.

  • Need help with simple file sharing application

    I have an assignment to build a Java File Sharing application. Since I'm relatively new to programming, this is not gonna be an easy task for me.
    Therefore I was wondering if there are people willing to help me in the next few days. I will ask questions in this thread, there will be loads of them.
    I already have something done but I'm not nearly halfway finished.
    Is there a code example of a simple file sharing application somewhere? I didn't manage to find it.
    More-less, this is what it needs to contain:
    -client/server communication (almost over)
    -file sending (upload, download)
    -file search function (almost over)
    -GUI of an application.
    GUI is something I will do at the end, hopefully.
    I hope someone will help me. Cheers
    One more thing, I'm not asking for anyone to do my homework. I will only be needing some help in the various steps of building an application.
    As I said code examples are most welcome.
    This is what I have done so far
    Server:
    package ToJeTo;
    import java.io.*;
    import java.net.*;
    public class MultiServer {
        public static ServerSocket serverskiSoket;
        public static int PORT = 1233;
        public static void main(String[] args) throws IOException {
            try {
                serverskiSoket = new ServerSocket(PORT);
            }catch (IOException e) {
                System.out.println("Connection impossible");
                System.exit(1);
            do {
                Socket client = serverskiSoket.accept();
                System.out.println("accepted");
                ClientHandler handler = new ClientHandler(client);
                handler.start();
            } while(true);
    }Client:
    package ToJeTo;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.*;
    import java.util.Scanner;
    public class MultiClient {
        public static InetAddress host;
        public static int PORT = 1233;
        public static void main(String[] args) {
            try {
                host = InetAddress.getLocalHost();
            }catch (UnknownHostException uhe) {
                System.out.println("Error!");
                System.exit(1);
            sendMessages();
        private static void sendMessages() {
            Socket soket = null;
            try {
                soket = new Socket(host, PORT);
                Scanner networkInput = new Scanner(soket.getInputStream());
                PrintWriter networkOutput = new PrintWriter(soket.getOutputStream(), true);
                Scanner unos = new Scanner(System.in);
                String message, response;
                do {
                    System.out.println("Enter message");
                    message = unos.nextLine();
                    networkOutput.println(message);
                    response = networkInput.nextLine();
                    System.out.println("Server: " + response);
                }while (!message.equals("QUIT"));
            } catch (IOException e) {
                e.printStackTrace();
            finally {
                try{
                    System.out.println("Closing..");
                    soket.close();
                } catch (IOException e) {
                    System.out.println("Impossible to disconnect!");
                    System.exit(1);
    }ClientHandler:
    package ToJeTo;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class ClientHandler extends Thread {
        private Socket client;
        private Scanner input;
        private PrintWriter output;
        public ClientHandler(Socket serverskiSoket) {
            client = serverskiSoket;
            try {
            input = new Scanner(client.getInputStream());
            output = new PrintWriter(client.getOutputStream(), true);
            } catch (IOException e) {
                e.printStackTrace();
            public void run() {
                String received;
                do {
                received = input.nextLine();
                output.println("Reply: " + received);
                } while (!received.equals("QUIT"));
                try {
                    if (client != null)
                        System.out.println("Closing the connection...");
                        client.close();
                }catch (IOException e) {
                    System.out.println("Error!");
    }Those three classes are simple client server multi-threaded connection.

    Now the other part that contains the search function looks like this:
    package ToJeTo;
    import java.io.*;
    import java.util.*;
    public class User {
        String nickname;
        String ipAddress;
        static ArrayList<String> listOfFiles = new ArrayList<String>();
        File sharedFolder;
        String fileLocation;
        public User(String nickname, String ipAddress, String fileLocation) {
            this.nickname = nickname.toLowerCase();
            this.ipAddress = ipAddress;
            sharedFolder = new File(fileLocation);
            File[] files = sharedFolder.listFiles();
            for (int i = 0; i < files.length; i++) {
                listOfFiles.add(i, files.toString().substring(fileLocation.length()+1));
    public static void showTheList() {
    for (int i = 0; i < listOfFiles.size(); i++) {
    System.out.println(listOfFiles.get(i).toString());
    @Override
    public String toString() {
    return nickname + " " + ipAddress;
    User Manager:
    package ToJeTo;
    import java.io.*;
    import java.util.*;
    class UserManager {
        static ArrayList<User> allTheUsers = new ArrayList<User>();;
        public static void addUser(User newUser) {
            allTheUsers.add(newUser);
        public static void showAndStoreTheListOfUsers() throws FileNotFoundException, IOException {
            BufferedWriter out = new BufferedWriter(new FileWriter("List Of Users.txt"));
            for (int i = 0; i < allTheUsers.size(); i++) {
                    System.out.println(allTheUsers.get(i));
                    out.write(allTheUsers.get(i).toString());
                    out.newLine();
            out.close();
    }Request For File
    package ToJeTo;
    import java.util.*;
    public class RequestForFile {
        static ArrayList<String> listOfUsersWithFile = new ArrayList<String>();
        Scanner input;
        String fileName;
        public RequestForFile() {
            System.out.println("Type the wanted filename here: ");
            input = new Scanner(System.in);
            fileName = input.nextLine();
            for (User u : UserManager.allTheUsers) {
                for (String str : User.listOfFiles) {
                    if (str.equalsIgnoreCase(fileName))
                        listOfUsersWithFile.add(u.nickname);
        public RequestForFile(String fileName) {
            for (User u : UserManager.allTheUsers) {
                for (String str : User.listOfFiles) {
                    if (str.equalsIgnoreCase(fileName))
                        listOfUsersWithFile.add(u.nickname);
        public static List<String> getAll() {
            for (int i = 0; i < listOfUsersWithFile.size(); i++) {
                //System.out.println("User that has the file: " + listOfUsersWithFile.get(i));
            return listOfUsersWithFile;
    }Now this is the general idea.
    The user logs in with his nickname and ip address. He defines his own shared folder and makes it available for other users that log on to server.
    Now each user has their own list of files from a shared folder. It's an ArrayList.
    User manager class is there to store another list, a list of users that are connected with server.
    When the user is searching for a particular file, he is searching through all the users and their respective files lists. Therefore for each loop inside a for each loop.
    Now the problem is how to connect all that with Client and Server class and put it into one piece.
    GUI should look somewhat like this:

  • Collage Students need help with Java project(Email Server) whats analysis?

    Hi im studying in collage at the moment and i have just started learning java this semester, the thing is my teacher just told us to do an project in java , since we just started the course and i dont have any prior knowledge about java i was wondering if some one could help me with the project.
    i choose Email Sevice as my project and we have to submit an analysis and design document , but how the hell am i suppose to know what analysis is ? i just know we use ER diagrams & DFD's in the design phase but i dont know what analysis means ?
    could some one tell me what analysis on an email service might be? and what analysis on a subject means? is it the codeing involved or some thing coz the teacher told us not to do any codeing yet so im completly stumped,
    oh and btw we are a group of 3 students who are asking u the help here coz all of us in our class are stupmed ?

    IN case any one is interested this is the analysis i wrote
    ANALYSIS
    Analysis means figuring out what the problem is, maybe what kinds of solutions might be appropriate
    1.     Introduction:-
    The very definition of analysis is an investigation of the component parts of a whole and their relations in making up the whole. The Analysis done here is for an emailing service called Flashmail, the emailing service is used to send out mails to users registered with our service, these users and there log activities will be stored in some where, the most desirable option at this time is a Database, but this can change as the scope of the project changes.
    2.     Customer Analysis:-
    We are targeting only 30 registered users at the moment but this is subject to change as the scale changes of the project .Each user is going to be entitled to 1MB of storage space at this time since we lack the desired infrastructure to maintain anything higher than 1MB but the end vision of the project is to sustain 1000 MB of storage space while maintaining a optimal bandwidth allocation to each user so as to ensure a high speed of activity and enjoyment for the Customer.
    The Service will empower the user to be able to send, read, reply, and forward emails to there specified locations. Since we are working on a limited budget we can�t not at this time enable the sending of attachments to emails, but that path is also left open by modularity of java language, so we can add that feature when necessary.
    3.     Processor Load Analysis:-
    The number of messages per unit time processing power will be determined on hand with various algorithms, since it is best not to waste processor power with liberally distributing messages per unit time. Hence the number of messages will vary with in proportion to the number of registered users online at any given time.
    4.     Database Decision Analysis:-
    The High level Requirements of the service will have to be decided upon, the details of which can be done when we are implementing the project itself. An example of high level requirements are database management, we have chosen not to opt for flat files because of a number of reasons, first off a flat files are data files that contain records with no structured relationships additional knowledge is required to interpret these files such as the file format properties. The disadvantages associated with flat files are that they are not fast, they can only be read from top to bottom, and usually they have to be read all the way through. Though there is are advantages of Flat files they are that it takes up less space than a structured file. However, it requires the application to have knowledge of how the data is organized within the file.
    Good databases have key advantage over flat files concurrency. When you just read stuff from file it�s easy, but tries to synchronize multiple updates or writes into flat file from scripts that run in different process spaces.
    Whereas a flat file is a relatively simple database system in which each database is contained in a single table. In contrast, relational database systems can use multiple tables to store information, and each table can have a different record format.
    5.     Networking Analysis:-
    Virtually every email sent today is sent using two popular protocols known as SMTP (Simple Mail Transfer Protocol) and MIME (Multipurpose Internet Mail Extensions).
    1.     SMTP (Simple Mail Transfer Protocol)
    The SMTP protocol is the standard used by mail servers for sending and receiving email. In order to send email we will first establish a network connection to our SMTP server. Once you have finished sending your email message it is necessary that you disconnect from the SMTP server
    2.     MIME (Multipurpose Internet Mail Extensions)
    The MIME protocol is the standard used when composing email messages.

  • I need help with exporting project for the web

    Probably something i am doing wron g but here are the problems. When I use Quicktime Converter, if I try to convert to a Quicktime movie or an MPEG-4 nothing happens and i get a 'File error;File Unknown message' when i try to convert to an AVI File, it works, but even though I have already rendered the project, it shows up with little flashes of blue that say 'unrendered'. and finally, when I try to make it a w
    Windows Media File, it stops after 29 seconds. Any ideas?
    I have an iMac with dual core processor, and FCE HD 3.5.1. I have my video files on an external drive.
    iMac   Mac OS X (10.4.10)  

    perform a search using the term export for web and it should throw up some ideas.
    here's one for starters:
    http://discussions.apple.com/thread.jspa?messageID=2309121&#2309121
    If you're using flip4mac to convert to wmv, the trial stops at 30 seconds - you need at least wmvstudio to export to wmv:
    http://www.flip4mac.com/wmv.htm

  • Need help with Resource Mapping from Application Deployment to VC:virtualMachine

    Hi,
    I've built a number of vCO Workflows and hooked them up to Resource Actions in vRA. However, the Workflows I've built all take a VC:VirtualMachine as the input and therefore,they only "hookup" to VMs in the Machines list in the Items tab in vRA. Ideally, I want these actions to hookup to the Application Deployments in vRA since that is what my users are deploying - the VM that the App rides on is somewhat secondary. Plus, it's cumbersome for them to find the VM that corresponds to the App they want to run the action on.
    So, I looked into creating a new Resource Mapping, thinking I could map an Application Deployment to a VC:VirtualMachine so that I could create an Action for the Application. I was able to create a mapping from Application Deployment to VC:VM using the Map to VC:VM existing workflow and I could add that to the Actions menu for the Application Deployment but if I try to run it, it fails. I kind of expected this since I think the Map to VC:VM is expecting an input of IaaS VC:VM to map to vCO VC:VM. I think what I need to do is write a Workflow that will take in the Application Deployment "object" and find the VC:VM inside it but I don't know how to find out the structure of an Application Deployment such that I could parse it and get the VM.
    Does this make sense? Am I going about this the right way? Thanks for any help,
    Tom

    Hi,
    I've built a number of vCO Workflows and hooked them up to Resource Actions in vRA. However, the Workflows I've built all take a VC:VirtualMachine as the input and therefore,they only "hookup" to VMs in the Machines list in the Items tab in vRA. Ideally, I want these actions to hookup to the Application Deployments in vRA since that is what my users are deploying - the VM that the App rides on is somewhat secondary. Plus, it's cumbersome for them to find the VM that corresponds to the App they want to run the action on.
    So, I looked into creating a new Resource Mapping, thinking I could map an Application Deployment to a VC:VirtualMachine so that I could create an Action for the Application. I was able to create a mapping from Application Deployment to VC:VM using the Map to VC:VM existing workflow and I could add that to the Actions menu for the Application Deployment but if I try to run it, it fails. I kind of expected this since I think the Map to VC:VM is expecting an input of IaaS VC:VM to map to vCO VC:VM. I think what I need to do is write a Workflow that will take in the Application Deployment "object" and find the VC:VM inside it but I don't know how to find out the structure of an Application Deployment such that I could parse it and get the VM.
    Does this make sense? Am I going about this the right way? Thanks for any help,
    Tom

  • I need help with my project

                System.out.println("Vu, John: Tip Calculator");
                System.out.println("================================");
                System.out.print("Enter check subtotal (9.25): ");
                double total = cin.nextDouble();
                System.out.print("Enter gratuity pecentage (20): ");
                int percentage = cin.nextInt();
                    System.out.println("");
                int Gratuity =(int)(percentage * .1);
                    System.out.println("    Gratuity: " + percentage);
                    System.out.println("    Total: " + " $ " + total);When I run this, I get
    Vu, John: Tip Calculator
    ================================
    Enter check subtotal (9.25): 10
    Enter gratuity pecentage (20): 15
    Gratuity: 15
    Total: $ 10.0
    I need to get the Gratuity multiplying it by .10. Can anyone help me? When I plug in 15, it is suppose to come out 1.5 and then adds with 10.

    You have a few issues here. First, why aren't you using "total" in the calculation of your gratuity? Second, why are you storing the gratuity in an int (this will round down to the nearest dollar)? Third, where are you actually transforming the percentage into a fraction (AKA dividing by 100.0)?
    This is the math:
    double subTotal = 10.0;
    double percentage = 20.0;
    double gratuity = subTotal * (percentage / 100.0);
    double total = gratuity + subTotal;Now plug your input into that.
    Edited by: endasil on 25-Sep-2009 4:51 PM

  • Need help with Hibernate project

    Can anyone help me with the errors I'm getting with my code? Here is what I have.
    package com.training.hibernate.client; import com.training.hibernate.dao.BookDAO; import com.training.hibernate.dao.PublisherDAO; import com.training.hibernate.domain.Book; import com.training.hibernate.domain.Publisher; public class BookPublisherClient { public static void main(String[] args) { // Create publishers Publisher publisher1 = new Publisher(); publisher1.setId(1); publisher1.setPublisher("Best Publishers"); PublisherDAO.createPublisher(publisher1); Publisher publisher2 = new Publisher(); publisher2.setId(2); publisher2.setPublisher("Smith and Sons Publishing"); PublisherDAO.createPublisher(publisher2); Publisher publisher3 = new Publisher(); publisher3.setId(3); publisher3.setPublisher("Really Good Publishers"); PublisherDAO.createPublisher(publisher3); // Create books Book book1 = new Book(); book1.setId(1); book1.setPublisher("Best Publishers"); book1.setTitle("Learning J2EE"); book1.setAuthor("John Smith"); BookDAO.createBook(book1); Book book2 = new Book(); book2.setId(2); book2.setPublisher("Best Publishers"); book2.setTitle("J2EE Made Easy"); book2.setAuthor("Tom Johnson"); BookDAO.createBook(book2); Book book3 = new Book(); book3.setId(3); book3.setPublisher("Smith and Sons Publishing"); book3.setTitle("J2EE Tutorial"); book3.setAuthor("Jim Van Buren"); BookDAO.createBook(book3); Book book4 = new Book(); book4.setId(4); book4.setPublisher("Smith and Sons Publishing"); book4.setTitle("Java for C++ Programmers"); book4.setAuthor("James McKinley"); BookDAO.createBook(book4); Book book5 = new Book(); book5.setId(5); book5.setPublisher("Smith and Sons Publishing"); book5.setTitle("J2EE"); book5.setAuthor("Tom Adams"); BookDAO.createBook(book5); Book book6 = new Book(); book6.setId(6); book6.setPublisher("Really Good Publishers"); book6.setTitle("So You Wanna Be A Java Programmer!"); book6.setAuthor("William Wilson"); BookDAO.createBook(book6); Book book7 = new Book(); book7.setId(7); book7.setPublisher("Really Good Publishers"); book7.setTitle("Learning J2EE"); book7.setAuthor("John Smith"); BookDAO.createBook(book7); // Test PublisherDAO's ability to list a publisher's books PublisherDAO.listBooksByPublisher("Smith and Sons Publishing"); // Test Book DAO's ability to list a book's publisher BookDAO.getPublisherById(6); } }
    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package=""> <class name="com.training.hibernate.domain.Publisher" table="publisher"> <id name="id"> <generator class="assigned" /> </id> <property name="message" type="string" column="publisher"></property> <property name="bookSet" column="bookSet"></property> <many-to-one name="book" column="bookId" update="false" /> <set name="books" table="book" inverse="true" lazy="true" order-by="bookId"> <key column="publisher" /> <one-to-many class="Book" /> </set> </class> </hibernate-mapping>
    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > <hibernate-mapping package=""> <class name="com.training.hibernate.domain.Book" table="book"> <id name="bookId"> <generator class="assigned" /> </id> <property name="message" type="string" column="publisher"></property> <property name="message" type="string" column="title"></property> <property name="message" type="string" column="author"></property> </class> </hibernate-mapping>
    Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource publisher.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556) at org.hibernate.cfg.Configuration.configure(Configuration.java:1476) at org.hibernate.cfg.Configuration.configure(Configuration.java:1462) at com.training.hibernate.dao.PublisherDAO.createPublisher(PublisherDAO.java:20) at com.training.hibernate.client.BookPublisherClient.main(BookPublisherClient.java:15) Caused by: org.hibernate.PropertyNotFoundException: field [bookSet] not found on com.training.hibernate.domain.Publisher at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:145) at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:137) at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:160) at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:241) at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:229) at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:302) at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2193) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2170) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166) at org.hibernate.cfg.Configuration.add(Configuration.java:716) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551) at org.hibernate.cfg.Configuration.addResource(Configuration.java:613) ... 8 more

    I've made some changes to my Publisher.java, which I'd forgotten to post here anyway, but which I do now. Below is the new exception list I'm getting. Can anyone help me?
    package com.training.hibernate.domain;
    import java.util.Set;
    public class Publisher {
         private int id;
         private String publisher;
         private Set<Book> bookSet;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getPublisher() {
              return publisher;
         public void setPublisher(String publisher) {
              this.publisher = publisher;
         public Set<Book> getBooks() {
              return bookSet;
         public void setBooks(Set<Book> bookSet) {
              this.bookSet = bookSet;
    Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource publisher.hbm.xml
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:616)
         at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635)
         at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
         at com.training.hibernate.dao.PublisherDAO.createPublisher(PublisherDAO.java:20)
         at com.training.hibernate.client.BookPublisherClient.main(BookPublisherClient.java:15)
    Caused by: org.hibernate.PropertyNotFoundException: field [book] not found on com.training.hibernate.domain.Publisher
         at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:145)
         at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:137)
         at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyAccessor.java:160)
         at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:241)
         at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:229)
         at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:81)
         at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2193)
         at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2170)
         at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2060)
         at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:381)
         at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)
         at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)
         at org.hibernate.cfg.Configuration.add(Configuration.java:716)
         at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551)
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:613)
         ... 8 more

Maybe you are looking for