Any one can help me from this code?

can someone tell me what the code DBUtil.getMarks(msg),DBUtil.setIndex(pn,rsp)
may do on the code below that i've downloaded this files from [http://sourceforge.net/projects/asimplesmssende/files/|http://sourceforge.net/projects/asimplesmssende/files/] I cant see any DBUtil.java or DBUtil method on the source codes I want to fixed this code coz it has a error because of DBUtil coz i want to create my own codes like this
import org.soham.sms.*;
import java.util.*;
class Q extends SMSUtil
     Q() throws Exception{
          super("Com16");
     public void processSMS(String pn,String msg) throws Exception
          String rsp=DBUtil.getMarks(msg);
          this.sendSMS(pn,rsp);
          DBUtil.setIndex(pn,rsp);
     public int getCurrentMsgIndex() throws Exception{
          return DBUtil.getIndex();
     public static void main(String[] args) throws Exception{
               SMSUtil util=new Q();
               //util.sendSMS("9830740684","Shubho Maha Shashthi Baba...Babun");
               ArrayList al=new ArrayList();
               util.startReceive(al,1000);
               Thread.sleep(60000);
               /*util.stopReceivingSMS();
               int s=al.size();
               for(int i=0;i<s;i++){
                    String x=((String[])al.get(i))[0];
                    String m=((String[])al.get(i))[1];
                    System.out.println(x+" *****  "+m);
}advance thanks ^^

Download the DBUtil class from that site as well, then, as that is, seemingly, another "self-written" class. You seemingly need to find a better site from which to plagarise your assignments, it seems.

Similar Messages

  • HT201263 I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    Read http://support.apple.com/kb/ts3694#

  • Any one can help me in this question i am stuck

    import java.util.Scanner;
    public class JPetWorld
    public static void main (String[] args){
    Pet p = new Pet( "Meow meow", 'F' );
    Scanner sc = new Scanner (System.in);
    System.out.print("Press enter to proceed") ;
    sc.nextLine() ;
    System.out.println("Name: " + p.getName() );
    System.out.println("Gender: " + p.getGender() );
    p.buyAccomodation( "Basket" );
    System.out.println( "Accomodation: " + p.getAccomodation() );
    You are given the Pet class with the following class diagram.
    Pet
    name: String
    gender: char
    hunger: String
    mood: String
    cleanliness: String

    Pet(name: String, gender: char)
    buyAccomodation(accom: String)
    buyFood(num: int): int
    feed()
    playFetch()
    playHideAndSeek()
    bath()
    advanceDay()
    bidFarewell()
    Using the Pet class given, you are required to write the JPetWorld program according to the following requirements.
    a. Declare one integer called foodQuantity presenting the quantity of pet food the owner has. Initialise it to zero.
    b. Choose Pet
    Prompt and read from the user
    - the pet name
    - the pet gender ( a char)
    and create a Pet object using the information entered.
    c. Choose Pet Accomodation
    Prompt and read from the user
    - the type of pet accomodation (sofa or basket)
    Then call the buyAccommodation method of the pet object to buy an accommodation using the information entered.
    d. Buy Pet Food
    Prompt and read from the user
    - the quantity of pet food to buy
    Call the buyFood method of the pet object using the information entered. The buyfood method will return an integer representing the actual quantity of food bought. This is because the shop may not have enough quantity of pet food that the owner wants to buy. Thus the actual quantity may be lesser than the quantity the user intended to buy. Set the foodQuantity variable to the actual quantity of food bought.
    e. Menu
    Write a loop that will loop 10 times. In the loop, do the following:
    - display a menu and prompt as follows:
    Menu
    1. Check pet food quantity
    2. Feed Pet
    3. Play with pet
    4. Bath pet
    5. Advance to next day
    6. Bid farewell and Exit
    Enter choice
    - Read the user input.
    - Choice 1 (Check pet food quantity)
    If the user selects choice 1, display the value of the variable foodQuantity in the following format:
    - Choice 2 (Feed pet)
    If the user selects choice 2, test if the value of the variable foodQuantity is greater than zero. If it is,
    � Call the feed method of the pet object
    � Decrease the foodQuantity variable by 1
    � Display the message �Pet is eating food�slurp, slurp�
    Else,
    � Only display �Not enough food to feed pet!�
    - Choice 3 (Play with pet)
    If the user selects choice 3, display the following submenu and prompt:
    1. Play fetch
    2. Play hide and seek
    Enter choice:
    Read the user input.
    If the owner selects choice 1, call the playFetch method of the pet object.
    If the owner selects choice 2, call the playHideAndSeek method of the pet object.
    - Choice 4 (Bath pet)
    If the user selects choice 4, prompt and read from the owner for the temperature of the bath water.
    If the temperature of the bath water is below 20oC, display �Cannot bath. Too cold!�.
    If the temperature of the bath water is above 40oC, display �Cannot bath. Too hot!�.
    Else, call the bath method of the pet object and display �Pet is bathing�splash, splash!�
    - Choice 5 (Advance day)
    If the user selects choice 5, call the advanceDay method of the pet object.
    - Choice 6 (Bid farewell and Exit)
    If the user selects choice 6, call the bidFarewell method of the pet and then terminate the loop.
    - Other input
    If the user enters any other input, display the message �Invalid choice.�
    thanks.............

    here's a bone to get you started. now that i've done the hard part,
    you should be able to finish the rest.
    public class Pet {     
         private String name;
         private char gender;
         private String hunger;
         private String mood;
         private String cleanliness;
         public Pet(String _name, char _gender){
              name = _name;
              gender = _gender;
         public void buyAccomodation(String accom) {}
         public int buyFood(int num){return 1;}
         public void feed() {}
         public void playFetch() {}
         public void playHideAndSeek() {}
         public void bath() {}
         public void advanceDay() {}
         public void bidFarewell() {}     
    }

  • I need Expert Decomposition of classes in Source Code for my reaserch purpose. Any body can help me in this regard?

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=698286&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I need Expert Decomposition of classes in Source Code of Firefox for my research purpose. Any body can help me in this regard?
    == This happened
    ==
    Not sure how often
    == Firefox version
    ==
    3.0.19
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19
    == Plugins installed
    ==
    *-Default Plug-in
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *6.0.12.1662
    *Office Plugin for Netscape Navigator
    *Google Update
    *Shockwave Flash 10.1 r53
    *Yahoo Application State Plugin version 1.0.0.7
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    *Adobe PDF Plug-In For Firefox and Netscape
    *DRM Netscape Network Object
    *Npdsplay dll
    *DRM Store Netscape Plugin

    Please let me tell you that I Expert Decomposition may be of any Version of Firefox or Thunder Bird.

  • I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box , as I can see on my classroom book and in many tutorial.any one can help please

    I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box ,where i choose what i want to import,  as I can see on my classroom book and in many tutorial.any one can help please ? thanks

    I have the same problem... but the photo library is neither on my iPhone or my Computer!! Please help.. its taking too much space.

  • How to delete a contact from wifi in mac pro, any one can help me

    how to delete a contact from wifi in mac pro, any one can help me

    Apple menu > System Preferences > Network > Airport > Advanced > Airport and then click on it and click the minus sign.
    You also can drag them in order of connection attempts.

  • My soundbooth not function withe error code NV_OGL. the stament: "soundbooth could not find any capable playback modules". but pc system is working. Any one can help me?

    Hi, I am SK Chew,My soundbooth is not function after few months not used and with an error code "NV_OGL" and the statement is "soundbooth could not find any capable playback modules". and my pc is working in good condition. any one can help me?

    Quicktime errors http://forums.adobe.com/message/4545437 may help
    Or, not exactly the same, but MAY be related
    ExporterQuickTimeHost QT Version http://forums.adobe.com/thread/1109614

  • My ipod is disabled and say connect to iTunes when i connect to computer it say enter the pass cod but the ipod browser it's not showing ..any one can help me please, ty

    my ipod is disabled and say connect to iTunes when i connect to computer it say enter the pass cod but the ipod browser it's not showing ..any one can help me please, ty

    Place the iPod in Recovery mode and then restore

  • Hi, I need information about to change mi addrees and credit card from USA to Spain. Any ones  can help me?. Thank you

    Hi,
    I did my suscription two years ago living in Florida. Now I moved to Spain and I need to change my addreess and my credit card to continue with my Adobe Icloud suscription. Any one can help me? Thank you

    Some Change/Verify Account links https://forums.adobe.com/thread/1465499 that may help
    -Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html

  • Guys!! any one can help me in recursive permutation of integer array!!

    this is the description of my problem:
    We are supposed to develop a recursive method with the following header:
    public static boolean nextPermutation(int[] array)
    The method receives an integer array parameter which is a permutation of integers 1, 2, �, n. If there is �next� permutation to the permutation represented by the array, then the method returns true and the array is changed so that it represents the �next� permutation. If there is no �next� permutation, the method returns false and does not change the array.
    Here is a verbal description of the recursive algorithm you need to implement:
    1. The first permutation is the permutation represented by the
    sequence (1, 2, �, n).
    2. The last permutation is the permutation represented by the
    sequence (n, �, 2, 1).
    3. If is an arbitrary permutation, then the �next� permutation is
    produced by the following procedure:
    (i) If the maximal element of the array (which is n) is not in the first
    position of the array, say , where , then just swap and . This
    will give you the �next� permutation in this case.
    (ii) If the maximal element of the array is in the first position, so ,
    then to find the �next� permutation to the permutation , first find
    the �next� permutation to , and then add to the end of thus
    obtained array of (n-1) elements.
    (iii) Consecutively applying this algorithm to permutations starting
    from (1, 2, �, n), you will eventually list all possible
    permutations. The last one will be (n, �, 2, 1).
    For example, below is the sequence of permutations for n = 3 , listed by the described algorithm:
    (0 1 2) ; (0 2 1) ; (2 0 1) ; (1 0 2) ; (1 2 0) ; (2 1 0)
    if any one can help me then please help me!! i am stucked at this position to find permutation of the integer array.
    thanks,

    Sure. Why don't you post the code you already have done, and maybe
    someone here can help you with it.

  • Any one could help me with this soap client program?

    Any one could help me with this soap client program?
    Below is the request format my partner is expecting to see:
    POST /Service.asmx HTTP/1.1
    Host: 192.168.1.1
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "https://api.abcdefg.com/GetList"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         <soap:Body>
              <GetList xmlns="https://api.abcdefg.com/">
                   <username>string</username>
                   <password>string</password>
              </GetList>
         </soap:Body>
    </soap:Envelope>The java client I wrote is blow:
    import javax.xml.soap.*;
    import java.util.Iterator;
    import java.net.URL;
    import java.io.*;
    public class Client {
        public static void main(String [] args) {
            try {
                SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
                SOAPConnection connection = soapConnectionFactory.createConnection();
                SOAPFactory soapFactory = SOAPFactory.newInstance();
                MessageFactory factory = MessageFactory.newInstance();
                SOAPMessage message = factory.createMessage();
             // addd SOAPAction;
             MimeHeaders hd = message.getMimeHeaders();
             hd.addHeader("SOAPAction", "https://api.abcdefg.com/GetList");
                // get env and body;
                SOAPPart soapPart = message.getSOAPPart();
                SOAPEnvelope envelope = soapPart.getEnvelope();
             SOAPBody body = envelope.getBody();
                Name bodyName = soapFactory.createName("GetList", "", "https://api.abcdefg.com/");
                SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
                //Constructing the body for the request;
             SOAPElement username = bodyElement.addChildElement("username");
             username.addTextNode("1234567");
             SOAPElement password = bodyElement.addChildElement("password");
             password.addTextNode("7654321");
                System.out.print("\nPrinting the message that is being sent: \n\n");
                message.writeTo(System.out);
                System.out.println("\n\n");
                URL endpoint = new URL ("https://api.abcdefg.com/Service.asmx");
                SOAPMessage response = connection.call(message, endpoint);
                connection.close();
                response.writeTo(System.out);
            }catch (Exception e) {
                 System.err.println("ERROR: ******* " + e.toString());
    }The response my partner's server returned is:
    <faultstring>Server did not recognize the value of HTTP Header SOAPAction:. </faultstring>I used similar code to access the web services provides via tomcat, it works fine...however, for this .NET services it does not work.
    By the way, I also have another version of the clirnt, using JDOM to construct a XML request and wrap with axis message. I got the same error message as above.
    Can anyone point out something for me?
    Any kind of comments will be appreciated!!
    Edited by: Nickolas.Chen on May 6, 2008 7:20 PM

    You will need to Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Can't show image in the center of the jscrollpane ,any one can help

    i write a program to show image in the jscrollpane
    i create a class called ImageLabel (it extends jlabel) then i use
    ImageLabel im=new ImageLabel(imageicon)
    jscrollpane.setViewportView(im);
    validate();
    repaint();
    but it show the image in the left and top corner of the jscrollpane ,not in the center of the jscrollpane
    then i change the ImageLabel to JLabel ,:
    JLabel im=new JLabel(imageicon);
    jscrollpane.setViewportView(im);
    validate();
    repaint();
    it shows the image in the center of the jscrollpane,
    but i want to use ImageLabel not jlabel
    whats the problem ,any one can help me ,thank you:)

    the ZoomLabel is the imagelabel ,and my complete code as follows:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    class ZoomLabel extends JLabel
        private ImageIcon icImage;   
        private int ph,pw,picW,picH;    
        ZoomLabel(ImageIcon ic)   
            super(ic, JLabel.CENTER); 
            icImage = ic;
            pw = picW = ic.getIconWidth(); 
            ph = picH = ic.getIconHeight();
           setSize(pw,ph);
           setPreferredSize(new Dimension(pw,ph));
           repaint();
          validate();
           public void zoom(float scale)    
               ph = Math.round(picH * scale);         
               pw = Math.round(picW * scale);          
               setPreferredSize(new Dimension(pw,ph)); 
               repaint();
             public void paint(Graphics g)     
                     update(g);     
                public synchronized void update(Graphics g)     
                {             g.drawImage(icImage.getImage(),0,0,pw,ph,this); 
      public class ImageShow extends JFrame
                  ImageShow()
                 ImageIcon ii=new ImageIcon("e:/download/pic/me1.JPG");
                   JScrollPane js=new JScrollPane();
                   zl=new ZoomLabel(ii);
                  js.setViewportView(zl);
                  getContentPane().add(js,"Center");
                     js.repaint();
                                  js.validate();
                  pack();
                  setVisible(true);     
             public  static void main(String[] args)
                   new ImageShow();
             ZoomLabel zl;
        }

  • The new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    gorxxx83 wrote:
    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?
    Downgrading is not supported.
    Here are some basic troubloeshooting tips:
    - Quit the App by opening multi-tasking bar, and swiping the App upward to make it disappear.  (For iOS 6, holding down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.)
    - Relaunch the App and try again.
      - Restart the device. http://support.apple.com/kb/ht1430
    - Reset the device. (Same article as above.)
    - Reset All Settings (Settings > General > Reset > Reset All Settings)
    - Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    - Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    - Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.
    If you want to contact Apple directly, call 1-800-MYAPPLE (1-800-692-7753), or go to getsupport.apple.com. 
    Don't waste your time asking for a downgrade of the iOS.  That's not an option.

  • I bought a mini DVI to HDMI convertor and  a HDMI to VGA cable to connect my mac book pro to a tv but it doesn't work any one can help.\\\\\

    i bought a mini DVI to HDMI convertor and  a HDMI to VGA cable to connect my mac book pro to a tv but it doesn't work any one can help.

    I would suggest looking into a Thunderbolt to HDMI connector. In this case, you may be able to use the TV as an external monitor. For this option, please confirm through additional research. I have not tested it personally.
    You can also use an Apple TV, which connects with HDMI. In this case, you can use Airplay Mirroring. Not all Macs support Airplay Mirroring, so you need to check first. I have a Mid-2011 27" iMac, and it supports Airplay Mirroring. I don't use it often because my TV is in another room, but I just tried it and it worked. It had to change the screen resolution to work well, so I don't know if I would want to use it as my day to day monitor. http://support.apple.com/kb/ht5404

  • I have buy 4s it's unlocked and its working with different carriers in Bahrain but in Pakistan I try to use different carriers's sims but its showing sim is not valid , not compatible? any one please help me out this

    I have buy 4s it's unlocked and its working ok with different carriers in Bahrain, but in Pakistan I try to use different carriers's sims but its showing sim is not valid , not compatible? any one please help me out this?

    Try restoring the iPhone to factory settings. If you are having difficult restoring, put the iPhone into Recovery Mode and see if that then works:
    http://support.apple.com/kb/ht1808
    If not, or if a restore to factory settings does not fix the problem, then your iPhone may have a hardware problem. You can only get the iPhone serviced by Apple in Canada, so you will have to take the iPhone there or send it to someone you know in Canada who can get the iPhone serviced and send it back to you. The only option for getting service in Pakistan would be to pay some unauthorized repair shop to attempt a repair, after which Apple will no longer provide any service even in Canada.
    Regards.

Maybe you are looking for

  • Pls help me

    Hi friends , I got a task to do . Description: "Age Analysis of Finished Good Stock: - Interactive report. Double click on the line item will give the batch wise stock details." Can any one give some more elaborate information regarding this. And ple

  • In the middle of downloading OS X Yosemite my screen got stuck on plain white....help?

    In the middle of downloading OS X Yosemite my screen got stuck on plain white....help?

  • IDVD hangs up in "creating your DVD"

    I just got a new iMac and am using the latest iDVD version to write a short video I shot (only 14 minutes long) as a test. It has two simple chapter marks. The iMovie encodes well and I send it to iDVD. It asks for a disk (I am using DVD-R) then the

  • SQL script runs under SQL Devoper, will not run under UNIX, SQLPlus

    I have a sql program I developed under the SQL Developer tool and it runs fine. I have ftp'd the sql to the Unix server and I am trying to run the same program under SQL Plus in unix. The program echo's back the line number that is the last line numb

  • Cardbus PCMCIA adaptor on Solaris 2.5.1

    I've tried to install a PCMCIA adaptor, CardBus type and from SCM Microsystem, on a E-250 running Solaris 2.5.1 but failed. The OS can just recognize there is a cardbus device and does not attach the correct PCMCIA driver 'spcic'. Can anyone give som