Need helo

This is what I am trying but all in vain.
public class QuestionFactory {
private String direction5[] = {"bvdhb","vfsjvb"};
     private String direction6 = "cscsc";
     private String direction7 = "cscscs";
     private String direction8 = "cscscsw";
     public String question1[];
public QuestionFactory()
     Random r = new Random();
          int randint = 1+ Math.abs(r.nextInt()) % 3;          
          System.out.println("Random1 "+randint);
          String str1;                    
          str1 = direction4[randint-1];               
          //Random number generator to get the random number for direction number 5
          Random r1 = new Random();
          int randint1 = 1+ Math.abs(r1.nextInt()) % 2;          
          System.out.println("***"+randint1);          
          System.out.println("");
          String str2;          
          str2 = direction5[randint1-1];               
          //Creating an array of string to store the direction          
          question1 = {direction1,direction2,direction3,str1,str2,direction6,direction7,direction8};
          System.out.println("");               
}

ok line 44 here is      question1[0] = direction1; this line
and here is my complete code for this class:
package cis675.virat.tiwari.assignment1;
import java.util.*;
import java.io.*;
import java.io.FileReader.*;
import javax.swing.*;
public class QuestionFactory {
     public String direction1 = "Abbreviations:Computer Science has so many abbrev.To win this question, your team must enter the full name for the provided abbreviation.I'll print the abbreviation,then start the timer."; 
     private String direction2 = "Lexicon: To win this LexiCon, your team must agree on the correct definition for a word.Please enter a, b, c, or d, to this multiple-choice question.  I'll print the word and definitions, then start the timer.";
     private String direction3 = "Polygraph: To win this Polygraph your team must agree if a statement is true or false.  I'll display the statement and start the timer.";
     private String direction4[] = {" Charades:To win this question your team must choose one person who can act out the answer just like charades to the rest of the team.  I'll provide a hint for the team.  Then, I'll start the timer after I display the word to the performer"
                                                            ,"Password: To win this question, your team must choose one person who can give single-word verbal queues to describe the answer, but can use no names or gestures.  The communicator can use words related to the object, but cannot say the word or any derivative.  I'll provide a hint for the team.  Then I'll start the timer after I display the word to the performer."
                                                            ,"Sketch: To win this question your team must choose one person who can get you to guess the answer by drawing clues on paper with no talking, letters, or symbols.  (Writing numbers is ok.)  I'll provide a hint for the team.  Then I'll start the timer after I display the word to the artist."};
     private String direction5[] = {"bvdhb","vfsjvb"};
     private String direction6 = "cscsc";
     private String direction7 = "cscscs";
     private String direction8 = "cscscsw";
      String question1[] = {};
    //public TextReader data;
     //Constructor for class Question factory
     public  QuestionFactory()
          //Random number generator to get the random number for direction number 4
          Random r = new Random();
          int randint = 1+ Math.abs(r.nextInt()) % 3;          
          System.out.println("Random1 "+randint);
          String str1;                    
          str1 = direction4[randint-1];               
          //Random number generator to get the random number for direction number 5
          Random r1 = new Random();
          int randint1 = 1+ Math.abs(r1.nextInt()) % 2;          
          System.out.println("***"+randint1);          
          System.out.println("");
          String str2;          
          str2 = direction5[randint1-1];          
          //Creating an array of string to store the direction          
           //question1 = {direction1,direction2,direction3,str1,str2,direction6,direction7,direction8};
          question1[0] = direction1;
          question1[1] = direction2;
          question1[2] = direction3;
          question1[3] = str1;
          question1[4] = str2;
          question1[5] = direction6;
          question1[6] = direction7;
          question1[7] = direction8;     
          System.out.println("directions");
          System.out.println("");               
     //GenerateQuestion() takes the name of the file to read file as parameter
     // and generate the question object and add to Question Linked List
     //Also generates Question Type
     public String[] GenerateQuestion (String data)throws Exception
          FileReader f = new FileReader(data);
          Scanner s = new Scanner(f);
          String[] abc = {};
          Question question;
          //Scanner s = new Scanner(new File(data));
          while((s.hasNext()))
               //string to store the string question type from the file                
               String str1 = s.nextLine();                    
               String temp = str1.substring(0,1);               
               System.out.println("temp is: "+temp);               
               //integer converstion of the string
               int qType = Integer.parseInt(temp);
               System.out.println("Question Type: "+ qType);               
               if(qType ==1||qType == 6||qType == 8)
                    question = new Question();
                    System.out.println(""+ question);
               else if (qType == 2|| qType == 3 || qType == 7)
                    question = new OneCharacterAnswer();
                    System.out.println(""+ question);
               else
                    question = new TrustedAnswer();
                    System.out.println("5***5"+ question);
              question.parse(str1);
              //question.setDirections(question1);
               // Look at the Question Type and create the correct type of Question               
               //if(s.hasNextInt())
                    //for(int i;i<s.nextInt() ;i++)
                         //char space = data.charAt(i);
                    //s.nextLine();
                    //int i = 0;                    
                    //System.out.println(s.findInLine(""));                    
                    //char first = data.charAt(5);
          return abc;
     public static void main(String [] args) throws Exception
          QuestionFactory qf1 = new QuestionFactory();
          String questionType = JOptionPane.showInputDialog("Select the Question type(file name)");
          qf1.GenerateQuestion(questionType);          
}

Similar Messages

  • I have dollars in my accu but I can't buy anything ..should connect with support..need helo

    J

    If you are getting a message about contacting iTunes support then you can do so here : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store
    If you are getting a different message ... ?

  • I need helo / lot of problems

    I recently buy ipod touch the v. is 4.2.1 and i have the following problems.
    1.- When i start an app it suddenly close the app and the screen turns white for a moment, then i have to start the app after a reboot of the ipod touch.
    2.- Some apps wwhen im using them it suddenly turns white and it seems the app its still working but it has a video fail (its not the same as point number 1) the first one closes the app and the second one its still running but without video).
    In number 1 and 2 when it happens i have to turn off the device and then it works for a while.
    3.- When im on MSN messenger it never sends me a notification until i start the program again it says connecting and then it get my messages.
    4.- in msn the chat part of the program it has the ppl who talk to me but suddenly they dissapear and i cant get it to work until i reboot the system.
    I try to restore my devide using the itunes restore point, it lasts like 3 hours doing the reboot and i cant fix those problems if someone can help me i appreciate it.

    If you are having problems restoring, have it looked at. Sounds like you have a hardware issue there anyway. With that screen going white, your logic board could be the problem.
    Check out the new remodeled MacOSG website! 24-hour Apple-related news & support.
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • I need helo in FFT writing file

    Hi, 
    I am trying to do open loop system where can generate a signal continuously to actuate the motor and measuring signal continuously as well. However, I have faced problem in writing the date of FFt in the file where after running the code the error appeared as can be shown th attached file. I have attached the VI file. If you help me I will be eternally grateful.
    Khalid
    Attachments:
    Untitled.png ‏33 KB
    Test (6) (11).vi ‏108 KB

    Hi RavensFan and Dennis,
    I have done what you mentioned. I have question in regards of writting the FFt in file . In the file what I got after executing the code, there is a time column and the amplitude column . the time that is written in the first column represent what?
    Also, how i write the frequence instead of writing the time in this column ?
    Khalid
    Attachments:
    Test _11 (3).vi ‏111 KB

  • Need helo with My Radar application

    My Radar application display messed up.  Cannot get back to original.

    Contact the developer. My Radar in not an Apple product.

  • Need Helo with A Program !!!

    Hey guys, i have to write a program which would output the Date in different formats. For example you input 04/5/1998 and it will output it the same way but also April 5 1998. I can't figure out how to use those constructors in here, for some reason they always confuse me. May be someone already did this stuff and knows what to do, thanks in advance.

    Here's a tutorial on the use of date formats.
    http://java.sun.com/docs/books/tutorial/i18n/format/dateintro.html
    You can define custom formats with SimpleDateFormat class; the API documentation for that class has the format code information.

  • Need helo with this asap - WWYD?

    Hi guys - I am hoping you can help me out with this one!  You helped tremendously with a previous problem I had but this is more of a doozy. A buyer contacted me asking where his item was that he purchased on July 27th - well I was immediately concerned as shipping from Oakville to Toronto only takes 2-3 days tops.  When looking at tracking, the item was delivered to him on July 30th BUT was refused by the receiver and sent back to me.  It is currently waiting for me at my local Post Office (I am up North on a family vacation right now) to pick up.  I will have to pay the returned parcel shipping cost when I pick this up as per Canada Post protocol. Anyhow, the signature and name on file of the person who refused it and sent it back is a David B - NOT my buyer and my buyer claims he has no idea who this is.  I double checked and the buyer address I sent it to was correct but is an apartment complex.  The buyer is upset and wants it sent back to him asap and claims it is MY mistake - he says the Post Office told him I put on the wrong Postal Code, wth?  Not sure how he would be privy to that info and it is not true anyways - it was the correct address. SO  do you think my buyer is fooling around here (says he doesn't know this David B who happened to accept the package at his address but perhaps he does and is embarrased that his family member caused this trouble, OR perhaps did the Postal Person deliver to the wrong apartment complex in the building.  And if so, why didn't David and the Postperson see that David was clearly NOT Yuri - with a different last name? Is Canada Post to blame and how would I approach this with them ? So I did everything correctly yet now I have a disgruntled buyer who is angry at me, I have to pay the returned parcel fee to get the package back and then repay shipping to re-send it to the sender -  with the slightly scary possibility that it may be again delivered to this "David" and not the correct buyer!! Help! How would you deal with this situation!!!  The buyer is awaiting my response. 

    What's the value of the item?  If it's an expensive or OOAK item, I think you have two choices: either consider sending it back with signature confirmation (Xpresspost) at your own cost, or just refund the buyer.  You'll get a defect for the refund, but even if you send it back, you may still get neutral or negative FB if the buyer is displeased, which will mean a defect anyway.  If it's a relatively inexpensive item, rather than risking a second round of non-delivery, I think I'd just refund the buyer with an apology and take the defect hit.  In your case, you have enough sales volume to absorb it.  The buyer may not be happy in the end whatever you do, and for a relatively low value item you'll have lost the cost of the return postage and the cost of shipping it back to him.   If the buyer does leave a neg/neutral FB comment, you can always leave a reasonable, factual response, such as: "Item was undeliverable at buyer's address" or something along those lines.   Perhaps other sellers will come along with some other options -- best of luck with this!   

  • P O related question

    Hello Gurus,
    I need helo with the following scenario:
    There is an AMEX tool that is used by legal staff to update each purchase with the details around the purchase (tie it to Cost Center, Matter, PO #, etc.).  If a PO is entered in SAP for a purchase made with a AMEX card, then the AMEX tool needs to be updated with the PO #.  This way the staff can choose the PO # in the AMEX tool.  How do we identify which PO #s need to be sent to AMEX?
    Example.  A PC is purchased with an AMEX card.  A PO is entered for Dell.  The PO form is sent to Dell, the PC is sent to Baker and the goods receipt is completed.  At this point the PO # needs to be identified as an AMEX PO, so that we can send the PO # to the AMEX tool.  The AMEX tool is then used to assign the purchase of the PC to the PO #.  The AMEX tool then creates an extract file that is sent to SAP to create the MIRO for the Dell PO.  The MIRO should NOT be paid since itu2019s tied to AMEX .
    ANy help is greatly appreciated.
    Thanks
    RF

    Hi,
    you could control it via payment term.
    Create a payment term for AMEX and if the payment term of the PO in header part is AMEX then you should sent it to AMEX tool.
    Hope this helps.
    Kind Regards
    Tarik

  • Sharifs88569882

    hello
    I need download my adobe acrobat but I can,t
    pls I need helo
    regard

    Hi Sharif ,
    Please refer to the following link to download Adobe Acrobat.
    https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    Let us know in case you need further assistance .
    Regards
    Sukrit Dhingra

  • Error: Helo command rejected: need fully-qualified hostname

    Im trying to setup a SL Server as mail server for internal and external use (company.lan and company.net).
    When I try to send to the internal (company.lan) I get the following error:
    Helo command rejected: need fully-qualified hostname.
    Here is my postconf -n output
    I guess the error is in the line with the bold letters. How can I change it and should I?
    Thanks
    Kostas
    Last login: Mon Nov 16 23:42:18 on console
    server:~ admin$ postconf -n
    biff = no
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    header_checks = pcre:/etc/postfix/customheaderchecks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = dovecot
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    messagesizelimit = 10485760
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    mydomain = COMPANY.lan
    mydomain_fallback = localhost
    myhostname = server.COMPANY.lan
    mynetworks = 127.0.0.0/8,192.168.16.0
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpdclientrestrictions = permit_mynetworks permitsaslauthenticated permit
    smtpdenforcetls = no
    smtpdhelorequired = yes
    *smtpdhelorestrictions = rejectinvalid_helohostname rejectnon_fqdn_helohostname*
    smtpdpw_server_securityoptions = cram-md5
    smtpdrecipientrestrictions = permitsaslauthenticated permit_mynetworks rejectunauthdestination checkpolicyservice unix:private/policy permit
    smtpdsasl_authenable = yes
    smtpdtlsCAfile = /etc/certificates/server.COMPANY.lan.57680B96FCEC7F50F59A01D8F7DC4E841B2DB453.c hain.pem
    smtpdtls_certfile = /etc/certificates/server.COMPANY.lan.57680B96FCEC7F50F59A01D8F7DC4E841B2DB453.c ert.pem
    smtpdtls_excludeciphers = SSLv2, aNULL, ADH, eNULL
    smtpdtls_keyfile = /etc/certificates/server.COMPANY.lan.57680B96FCEC7F50F59A01D8F7DC4E841B2DB453.k ey.pem
    smtpduse_pwserver = yes
    smtpdusetls = yes
    unknownlocal_recipient_rejectcode = 550
    virtualaliasdomains = $virtualaliasmaps hash:/etc/postfix/virtual_domains
    virtualaliasmaps = hash:/etc/postfix/virtual_users
    server:~ admin$

    Παρακαλώ (you are welcome) Kostas,
    If mail is for internal use only, you can keep the .lan address as long as you authenticate to send.
    If you need to send to external addresses, then make sure you use a valid e-mail address or your mails will be rejected by other mail servers.
    HTH,
    Alex

  • Helo command rejected: need fully-qualified hostname

    Hi,
    I am using iPlanet messaging server 5.2. My email is rejected by some mail servers with following reason:
    Helo command rejected: need fully-qualified hostname
    Could you please give me some sujjestions to fix this problem?
    Thanks in advance!
    Francis

    Without knowing what os you're on, I'll assume solaris . .
    You can address your helo/ehlo greeting two ways:
    1. Fix your /etc/hosts so that the fqdn comes before your nickname
    xx.xx.xx.xx hostname.domain hostname
    or
    2. Add the fqdn to the daemon line in the imta.cnf file:
    ! tcp_local
    tcp_local smtp mx single_sys remotehost inner \ switchchannel identnonelimited subdirs 20\
    maxjobs 20 pool SMTP_POOL maytlsserver\ maysaslserver saslswitchchannel tcp_auth\
    threaddepth 64 dequeue_removeroute
    tcp-daemon HOSTNAME.YOUR_DOMAIN

  • HT3951 helo   when i want to dollar from the online manager football and need for speed the game , i try to buy but i cannot because they told ( your purchase could not be completed contact itunes store support to complete this transaction.)  pleasr help

    helo
    when i want to dollar from the online manager football and need for speed the game , i try to buy but i cannot because they told ( your purchase could not be completed contact itunes store support to complete this transaction.)
    pleasr help me for that , i can not buy any thing inside the game .
    i wating , thank you
    Email : [email protected]

    Click here and request assistance.
    (75245)

  • Powershell send-mailmessage error - helo command rejected: need fully-qualified

    did you try the From and To email addresses in the format of
    "User01 "
    "User02 "
    Like the examples here?
    https://technet.microsoft.com/en-us/library/hh849925.aspx

    Hello,I need help with sending e-mails via Powershell using SMTP authentication. I've described the problem here on StackOverflow already:
    http://stackoverflow.com/questions/31542444/powershell-send-mailmessage-error-helo-command-rejected-...Re-pasting here: """I've read many sources regarding this issue, but no luck :/I am trying to use Powershell 4.0 (Windows server 2012 R2) to send e-mails via the Send-MailMessage commandlet in this way:PHP$From = "[email protected]"$To = "[email protected]"$Subject = "e-mail odeslany z powershellu :)"$Body = "..."$SMTPServer = "smtp.mydomain.cz"$SMTPPort = "587"$credentials = new-object Management.Automation.PSCredential “[email protected]”, (“xxxpasswordxxx” | ConvertTo-SecureString -AsPlainText -Force)Send-MailMessage -From $From -to $To -Subject $Subject -Body $Body -SmtpServer...
    This topic first appeared in the Spiceworks Community

  • 504 5.5.2 windows : Helo command rejected: need fully-qualified hostname

    Hello2all!
    Just try to send e-mail from PC client running Outlook 2003 clien, and can't, the returning message is *504 5.5.2 <windows>: Helo command rejected: need fully-qualified hostname*
    From other e-mail client e-mail's sending and recieving very well, but Outlook 2003 return this message.
    Anybody has idea?

    I am so sorry, found great answer from Apple.
    May be someone will be interested.
    http://support.apple.com/kb/TS3023

  • Helo, i use safari 5.1.5 on my OS.X and it keeps loging me out of Facebook every 2 minutes and needs to sign in again...

    Helo, i use safari 5.1.5 on my OS.X and it keeps loging me out of Facebook every 2 minutes and needs to sign in again...

    https://discussions.apple.com/community/mac_os/safari?view=discussions#/?tagSet= 1042
    http://www.apple.com/support/safari
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion
    http://www.bing.com/search?q=Facebook+logging+out+user
    Do you really really want Fb to track you 24/7?

Maybe you are looking for

  • Java Stored Procedures and Triggers

    I want to to use Java stored procedures and triggers within the Oracle 11g XE So please , someone can help me because i tried but it didn't work I don't know where is the problem Thanks !!

  • Reformatting ipod mini-mac to pc

    i have no idea how to reformat my ipod mini. I have used it on my mac and now i am giving it to my brother who has a pc and its not working. So I need to know how to reformat it.

  • DVDSP Build and Burn Error message

    I am new to DVD Studio Pro and came across a problem during the build and burn process. When I try to build/format or build, I get an error message that says: Language codes for "English" and "English-2" must differ. Build cancelled. I am not sure wh

  • How to update firmaware with a PC

    I can download a package meant for a Mac. But how to unwrap it, and not the least how to push it to the AirPort Expressas a (assuming) binary file. My firmaware is 6.2 and want to upgrade to see if that gets me rid og the 80 minutes problem.

  • I installed Lion, now my dvd drive doesn't recognize any files on dvd. Please help.

    I'm a photographer with tons on images on dvd and my dvd drive now doesn't recognize any files on any of my dvd's. Help!!!