Help with sharing programs/calender between two palm centros (sprint)

My wife and I have identical new palm centros and we want to share contacts and calender throught the palm software.  I have tried to name them both the same and the program recognizes 2 different phones so it wouldnt share...
is tere any way to share this with the two?
I am trying to do software also... games.. etc... medical software...
help...
Post relates to: Centro (Sprint)

Hello and thank you for using the Palm Help Forums!
This is very possible. The easiest way is to beam the programs using bluetooth. Once bluetooth is enabled on both devices, from the main Apps screen, click the upper left hand side of the screen and you should see some menus drop down. Click App then go to send. Select the program you want to transfer and click Send.
Depending on the size of the program you are trying to send will determine how long it will take.
I hope this helps and let me know if you have any further questions.
-Pat
Post relates to: Treo 800w (Sprint)

Similar Messages

  • Sharing a shared network variable between two PC's connected to a network

    Sharing a shared network variable between two PC's connected to a network
    Surely this shouldn’t be so difficult! I have a little LabVIEW program running in the background of PC1. The exe’s task is to collect and send OPC variables held on a SCADA system and convert them to shared network variables (as I thought that they would be easy to share over a network, easier than the nasty OPC and DCOM issues). I have PC2 which runs measurement studio and I have created a nice test VB program which either writes or reads the network variables which are on PC1. The PC1 collection software is working perfectly and when I change the values on the SCADA system I can see the network variable change on ‘NI Distributed System Manager’. I When I look at ‘NI Distributed System Manager’ on PC2 I can’t see PC1 on the list and when I use the basic measurement studio code below to read the network variable it times out at the TestVariable.connect() line.
    Ok so what do I need to do to read a shared network variable sat on PC1 from PC2 on the network
    Public Class Form1
    Private WithEvents TestVariable As NetworkVariableSubscriber(Of Double)
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    TestVariable = New NetworkVariableSubscriber(Of Double)("\\192.168.58.139\Test\TestVariable")
    TestVariable.Connect()
    End Sub
    Private Sub TestVariable_Data_Updated(ByVal sender As System.Object, ByVal e As NationalInstruments.NetworkVariable.DataUpdatedEve​ntArgs(Of Double)) Handles TestVariable.DataUpdated
    TextBox1.Text = e.Data.GetValue
    End Sub
    End Class

    Sorry lost all the formatting
    Surely this shouldn’t be so difficult! I have a little
    LabVIEW program running in the background of PC1. The exe’s task is to collect
    and send OPC variables held on a SCADA system and convert them to shared
    network variables (as I thought that they would be easy to share over a
    network, easier than the nasty OPC and DCOM issues). I have PC2 which runs
    measurement studio and I have created a nice test VB program which either
    writes or reads the network variables which are on PC1. The PC1 collection
    software is working perfectly and when I change the values on the SCADA system
    I can see the network variable change on ‘NI Distributed System Manager’. I
    When I look at ‘NI Distributed System Manager’ on PC2 I can’t see PC1 on the
    list and when I use the basic measurement studio code below to read the network
    variable it times out at the TestVariable.connect() line.
    Ok so what do I need to do to read a shared network variable
    sat on PC1 from PC2 on the network
    Public Class Form1
        Private
    WithEvents TestVariable As NetworkVariableSubscriber(Of Double)
    Private Sub Form1_Load(ByVal sender As System.Object,
    ByVal e As System.EventArgs) Handles MyBase.Load
    TestVariable = New NetworkVariableSubscriber(Of
    Double)("\\192.168.58.139\Test\TestVariable")
    TestVariable.Connect()
    End Sub
    Private Sub TestVariable_Data_Updated(ByVal sender As
    System.Object, ByVal e As
    NationalInstruments.NetworkVariable.DataUpdatedEve​ntArgs(Of Double)) Handles
    TestVariable.DataUpdated
    TextBox1.Text = e.Data.GetValue
    End Sub
    End Class 

  • Help with Paint program.

    Hello. I am somewhat new to Java and I was recently assigned to do a simple paint program. I have had no trouble up until my class started getting into the graphical functions of Java. I need help with my program. I am supposed to start off with a program that draws lines and changes a minimum of 5 colors. I have the line function done but my color change boxes do not work and I am able to draw inside the box that is supposed to be reserved for color buttons. Here is my code so far:
    // Lab13110.java
    // The Lab13 program assignment is open ended.
    // There is no provided student version for starting, nor are there
    // any files with solutions for the different point versions.
    // Check the Lab assignment document for additional details.
    import java.applet.Applet;
    import java.awt.*;
    public class Lab13110 extends Applet
         int[] startX,startY,endX,endY;
         int currentStartX,currentStartY,currentEndX,currentEndY;
         int lineCount;
         Rectangle red, green, blue, yellow, black;
         int numColor;
         Image virtualMem;
         Graphics gBuffer;
         int rectheight,rectwidth;
         public void init()
              startX = new int[100];
              startY = new int[100];
              endX = new int[100];
              endY = new int[100];
              lineCount = 0;
              red = new Rectangle(50,100,25,25);
              green = new Rectangle(50,125,25,25);
              blue = new Rectangle(50,150,25,25);
              yellow = new Rectangle(25,112,25,25);
              black = new Rectangle(25,137,25,25);
              numColor = 0;
              virtualMem = createImage(100,600);
              gBuffer = virtualMem.getGraphics();
              gBuffer.drawRect(0,0,100,600);
         public void paint(Graphics g)
              for (int k = 0; k < lineCount; k++)
                   g.drawLine(startX[k],startY[k],endX[k],endY[k]);
              g.drawLine(currentStartX,currentStartY,currentEndX,currentEndY);
              g.setColor(Color.red);
              g.fillRect(50,100,25,25);
              g.setColor(Color.green);
              g.fillRect(50,125,25,25);
              g.setColor(Color.blue);
              g.fillRect(50,150,25,25);
              g.setColor(Color.yellow);
              g.fillRect(25,112,25,25);
              g.setColor(Color.black);
              g.fillRect(25,137,25,25);
              switch (numColor)
                   case 1:
                        g.setColor(Color.red);
                        break;
                   case 2:
                        g.setColor(Color.green);
                        break;
                   case 3:
                        g.setColor(Color.blue);
                        break;
                   case 4:
                        g.setColor(Color.yellow);
                        break;
                   case 5:
                        g.setColor(Color.black);
                        break;
                   case 6:
                        g.setColor(Color.black);
                        break;
              g.setColor(Color.black);
              g.drawRect(0,0,100,575);
         public boolean mouseDown(Event e, int x, int y)
              currentStartX = x;
              currentStartY = y;
              if(red.inside(x,y))
                   numColor = 1;
              else if(green.inside(x,y))
                   numColor = 2;
              else if(blue.inside(x,y))
                   numColor = 3;
              else if(yellow.inside(x,y))
                   numColor = 4;
              else if(black.inside(x,y))
                   numColor = 5;
              else
                   numColor = 6;
              repaint();
              return true;
         public boolean mouseDrag(Event e, int x, int y)
              int Rectheight = 500;
              int Rectwidth = 900;
              currentEndX = x;
              currentEndY = y;
              Rectangle window = new Rectangle(0,0,900,500);
              //if (window.inside(Rectheight,Rectwidth))
                   repaint();
              return true;
         public boolean mouseUp(Event e, int x, int y)
              int Rectheight = 500;
              int Rectwidth = 900;
              startX[lineCount] = currentStartX;
              startY[lineCount] = currentStartY;
              endX[lineCount] = x;
              endY[lineCount] = y;
              lineCount++;
              Rectangle window = new Rectangle(0,0,900,500);
              if (window.inside(Rectheight,Rectwidth))
                   repaint();
              return true;
         public void Rectangle(Graphics g, int x, int y)
              g.setColor(Color.white);
              Rectangle screen = new Rectangle(100,0,900,600);
    }If anyone could point me in the right direction of how to go about getting my buttons to work and fixing the button box, I would be greatly appreciative. I just need to get a little bit of advice and I think I should be good after I get this going.
    Thanks.

    This isn't in any way a complete solution, but I'm posting code for a mouse drag outliner. This may be preferable to how you are doing rectangles right now
    you are welcome to use and modify this code but please do not change the package and make sure that you tell your teacher where you got it from
    MouseDragOutliner.java
    package tjacobs.ui;
    import java.awt.BasicStroke;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Stroke;
    import java.awt.event.*;
    import java.util.ArrayList;
    import java.util.Iterator;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    * See the public static method addAMouseDragOutliner
    public class MouseDragOutliner extends MouseAdapter implements MouseMotionListener {
         public static final BasicStroke DASH_STROKE = new BasicStroke(1.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL, 10.0f, new float[] {8, 8}, 0);
         private boolean mUseMove = false;
         private Point mStart;
         private Point mEnd;
         private Component mComponent;
         private MyRunnable mRunner= new MyRunnable();
         private ArrayList mListeners = new ArrayList(1);
         public MouseDragOutliner() {
              super();
         public MouseDragOutliner(boolean useMove) {
              this();
              mUseMove = useMove;
         public void mouseDragged(MouseEvent me) {
              doMouseDragged(me);
         public void mousePressed(MouseEvent me) {
              mStart = me.getPoint();
         public void mouseEntered(MouseEvent me) {
              mStart = me.getPoint();
         public void mouseReleased(MouseEvent me) {
              Iterator i = mListeners.iterator();
              Point end = me.getPoint();
              while (i.hasNext()) {
                   ((OutlineListener)i.next()).mouseDragEnded(mStart, end);
              //mStart = null;
         public void mouseMoved(MouseEvent me) {
              if (mUseMove) {
                   doMouseDragged(me);
         public     void addOutlineListener(OutlineListener ol) {
              mListeners.add(ol);
         public void removeOutlineListener(OutlineListener ol) {
              mListeners.remove(ol);
         private class MyRunnable implements Runnable {
              public void run() {
                   Graphics g = mComponent.getGraphics();
                   if (g == null) {
                        return;
                   Graphics2D g2 = (Graphics2D) g;
                   Stroke s = g2.getStroke();
                   g2.setStroke(DASH_STROKE);
                   int x = Math.min(mStart.x, mEnd.x);
                   int y = Math.min(mStart.y, mEnd.y);
                   int w = Math.abs(mEnd.x - mStart.x);
                   int h = Math.abs(mEnd.y - mStart.y);
                   g2.setXORMode(Color.WHITE);
                   g2.drawRect(x, y, w, h);
                   g2.setStroke(s);
         public void doMouseDragged(MouseEvent me) {
              mEnd = me.getPoint();
              if (mStart != null) {
                   mComponent = me.getComponent();
                   mComponent.repaint();
                   SwingUtilities.invokeLater(mRunner);
         public static MouseDragOutliner addAMouseDragOutliner(Component c) {
              MouseDragOutliner mdo = new MouseDragOutliner();
              c.addMouseListener(mdo);
              c.addMouseMotionListener(mdo);
              return mdo;
         public static interface OutlineListener {
              public void mouseDragEnded(Point start, Point finish);
         public static void main(String[] args) {
              JFrame f = new JFrame("MouseDragOutliner Test");
              Container c = f.getContentPane();
              JPanel p = new JPanel();
              //p.setBackground(Color.BLACK);
              c.add(p);
              addAMouseDragOutliner(p);
              f.setBounds(200, 200, 400, 400);
              f.addWindowListener(new WindowClosingActions.Exit());
              f.setVisible(true);
    }

  • Can anyone help with sharing my MacBook Pro with my smart tv.

    Can anyone help with sharing my mac with a smart tv

    I have just bought a new smart LG tv with wireless which can share with other products ie iPad , iPhone, computer using there smart share app, however this app is not compatable with a mac. I wondered if anyone could recommend a suitable app.
    Thanks

  • How to sync a iCal calender between two people?

    Hello,
    I'm trying to find a way to sync a iCal-calender between me and my wife.
    We have two apple-computers, and I tried to publish my calender, and then my wife "subscribed" to it. So far everything works ok.
    The "only" problem is that the calender is writeprotected in her computer.
    My idea was that we should have a calender that is shared between us, so that we could cooperate with info in it. So that both could put info in it.
    Could someone please help me out.
    /Bernt

    Hi,
    With iCal you basically have two options: (1) publish and subscribe (as you describe below), where you each share a calendar, which as you point out is "read-only" to the viewer or (2) use a sync service (like .MAC) to keep the calendar synchronized (note: it sync's all of iCal, not just an individual calendar.)
    The next version of iCal coming with Leopard is going to support the CalDAV standard, and will allow for better sharing/collaborating with calendars.
    Regards,
    ML

  • Sharing iPhone apps between two accounts on a single mac.

    Firstly, apologies if this topic has been covered many times before, I've tried to look, but can't find the exact answer I need.
    I have recently purchased two iphones and want to use them on seperate apple ID's - I want different iCloud storage for each phone.
    I have a macbook which has two accounts (one for me and one for my wife).  When I login to my account I have access to my itunes account and when my wife logins into her account she has access to her itunes account.
    I have followed the instructions for sharing musics between two users on the same mac - by moving the itunes media folder to the shared folder on my mac.  I have copied everything in that folder (music, movies, apps etc).  I have also set up home sharing as I believe that you can share apps between itunes accounts using it.  Everything seems to have worked ok in terms of her itunes being able to access the music, movies etc, but the apps don't seem to work properly.  I went through the subfolders of the itunes media folder and changed the folder permissions to read and write for everybody (because I was getting a permissions error) and she now has access to the apps that are there (on my itunes account), but the apps that she has downloaded on her phone are not being transferred to the macbook.  I've tried the reset warnings suggestion and that hasn't solved the issue. 
    Am I doing something wrong?  Should the apps folder within the itunes media folder not be moved with the music when transferring to the shared folder?  Any ideas why music and movies sharing is working ok, but not apps?
    Thanks in advance!

    This should help:
    iTunes: How to share music between different accounts on a single computer
    Note that when it says "publicly accessible location", it needs to be a place where everyone has read and write access. The most common such place is the Shared folder in the Users folder.

  • Need some help with sharing files from a Mac G3 to a Mac G4

    I've read through some of the forum comments here and checked with help, but still have a great deal of trouble understanding how to share files between two computers, especially when one has OSX 10.3.9 and the other has 9.2.2. I have these two computers connected with a router, but just can't seem to pass files from my G3 to my G4. All of the instructions I read are very confusing- subnet mask, IP address etc. Is there an area I can go to to get a better understanding? It seems like this shouldn't be very difficult. Is there an inherent problem because of the different systems? Thanks for any help I can get.
    Dick Skover

    I printed the article from Francine, and followed all of the steps and it just doesn't work. Actually, one of the first steps is to go to AppleTalk under the control panels and select "Connect via Ethernet" which I did, but got a "no zones available in that box and no options shown in that box. Is there a problem with the fact that I am connected through a router? Should I have a direct connection between computers without the router?
    I'm also reading the files sharing section of David Pogue's book on OSX The Missing Manual, but still can't get a handle on it. Any further help would be appreciated.
    Dick Skover

  • Need help with shared hyperlinks

    I need help understanding the shared hyperlink option when creating hyperlinks in InDesign CS5 (Mac) and how to change a shared hyperlink destination.
    I want to build a document that contains hyperlinks to files on the client’s server. The end use is to make a PDF in which the client can click on a hyperlink and it opens (for example) a Word document or another PDF on their server. When I started the project, I thought I would create shared hyperlinks because a single server document would be referred to by several links scattered through the InDesign document I was building.
    From the Hyperlink palette fly-out menu I chose New Hyperlink, then Link To: File from the dropdown, and I clicked the Shared Hyperlink option, and then OK to close the window. I export the InDesign file as a print PDF, and the hyperlinks work.
    Now I need to change the file paths, because the client moved their files to a new location. When I re-open the hyperlink in the Hyperlink palette by double clicking on it, the Edit Hyperlink window opens but it shows my link as:
    Link To: Shared Destination (rather than File)
    And the destination box underneath shows:
    Document: [my document name]
    Name [the file path I put in]
    However, this link is not editable. I don’t understand why InDesign does this on its own.
    I realize now that it was not necessary to tick the shared option when I built the hyperlink. Is there a way (a script? another method?) that I can remove the shared nature of the hyperlinks so that when I go to edit them they show as links to files (Link to: File, not Link to: Shared Destination) with a live Destination Path box where I can edit the link?
    (If anyone tries to help with a script, note that my document also contains other hyperlinks to internet URLs and emails that I don’t want to disturb.)
    Thanks for your consideration.

    Well. I do feel sort of bait-and-switched, but...
    I want to get the links back to the point where double clicking on the hyperlink name (number) in the Hyperlink palette opens an Edit Hyperlink dialog where the destination is Link to: File and the file path shows up in the File Path box as an editable string. Just the way I made them in the first place.
    It's good that you're comfortable editing the IDML.
    If you compare links made both ways in the IDML, the only distinction between the Shared and the not Shared seems to be the hidden attribute of the <HyperlinkURLDestination/> tag.
    Allegedly you cannot edit this in Javascript (though you could, I suppose, create a new HyperlinkURLDestination with all the same properties and then chang eeach hyperlink to point to it).
    But editing it in the IDML works fine. Open designmap.xml and change the Hidden="false" to Hidden="true". Of course, you only want to do that in the <HyerplinkURLDestination/> tags...
    Something about this seems fishy to me, so you might want to verify it yourself in a single case before you put too much effort in. But I think it's right.

  • Sharing iPhoto Library between Two User Accounts

    Is there any way to fully share a single iPhoto library between two user accounts on one machine (iMac 2.0GHz dual core Intel, 10.5.1, iPhoto '08), without using an external drive (because I don't have one)? By share, I mean each user has full rights and priveledges to the entire library, regardless of who uploaded the pics. Holding down the option key on iPhoto startup does not work because my wife can't access the pics I loaded even though she's pointing to the shared library in a shared folder.

    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc. then:
    Quit iPhoto in both accounts
    Move the iPhoto Library Folder to an external HD set to ignore permissions. *You could also use a dmg*.
    (Some people have had success putting the library in the Users/ Shared folder. If you do this make sure the file permissions are set to allow read/write access to everyone. But that's unlikely to work on 10.5 because of the way that the permissions have changed with the new OS.)
    In each account in turn: Hold down the option (or alt) key and launch iPhoto. From the resulting dialogue, select 'Choose Library' and navigate to the new library location. From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD

  • Sharing itunes purchases between two authorized computers not working

    hello,
    i currently own two apple laptops and want to be able to play my music that i purchased on one, on the other, as well. i have followed the instructions in other posts that tell me to 1, authorize the new computer, which i have done, and 2, if that works to go into a folder on my drive and delete it out to start fresh, which i have done, as well. however, when i click on the purchased songs, it is still telling me i need to authorize my computer. the computer, as i said, is already authorized.
    can anyone help with this?

    I'm not sure I understand your second step. Couldn't you use the Home Sharing feature in iTunes 9 to accomplish this, as long as it's enabled for each? Both computers should be authorized with the same iTunes Store account, as you've done.

  • Need some help with a program Please.

    Well, im new here, im new to java, so i need your help, i have to make a connect four program, my brother "Kind of" helped me and did a program for me, but the problem is i cant use some of those commands in the program and i have to replace them with what ive learned, so i will post the program and i will need your help to modify it for me.
    and for these programs, also i want help for:
    They have errors and i cant fix'em
    the commands that i've leaned:
    If statements, for loops, while loops,do while, strings, math classes, swithc statement, else if,logical operators,methods, one and two dimensional arrays.
    Thanx in advance,
    truegunner
    // Fhourstones 3.0 Board Logic
    // Copyright 2000-2004 John Tromp
    import java.io.*;
    class Connect4 {
    static long color[]; // black and white bitboard
    static final int WIDTH = 7;
    static final int HEIGHT = 6;
    // bitmask corresponds to board as follows in 7x6 case:
    // . . . . . . . TOP
    // 5 12 19 26 33 40 47
    // 4 11 18 25 32 39 46
    // 3 10 17 24 31 38 45
    // 2 9 16 23 30 37 44
    // 1 8 15 22 29 36 43
    // 0 7 14 21 28 35 42 BOTTOM
    static final int H1 = HEIGHT+1;
    static final int H2 = HEIGHT+2;
    static final int SIZE = HEIGHT*WIDTH;
    static final int SIZE1 = H1*WIDTH;
    static final long ALL1 = (1L<<SIZE1)-1L; // assumes SIZE1 < 63
    static final int COL1 = (1<<H1)-1;
    static final long BOTTOM = ALL1 / COL1; // has bits i*H1 set
    static final long TOP = BOTTOM << HEIGHT;
    int moves[],nplies;
    byte height[]; // holds bit index of lowest free square
    public Connect4()
    color = new long[2];
    height = new byte[WIDTH];
    moves = new int[SIZE];
    reset();
    void reset()
    nplies = 0;
    color[0] = color[1] = 0L;
    for (int i=0; i<WIDTH; i++)
    height[i] = (byte)(H1*i);
    public long positioncode()
    return 2*color[0] + color[1] + BOTTOM;
    // color[0] + color[1] + BOTTOM forms bitmap of heights
    // so that positioncode() is a complete board encoding
    public String toString()
    StringBuffer buf = new StringBuffer();
    for (int i=0; i<nplies; i++)
    buf.append(1+moves);
    buf.append("\n");
    for (int w=0; w<WIDTH; w++)
    buf.append(" "+(w+1));
    buf.append("\n");
    for (int h=HEIGHT-1; h>=0; h--) {
    for (int w=h; w<SIZE1; w+=H1) {
    long mask = 1L<<w;
    buf.append((color[0]&mask)!= 0 ? " @" :
    (color[1]&mask)!= 0 ? " 0" : " .");
    buf.append("\n");
    if (haswon(color[0]))
    buf.append("@ won\n");
    if (haswon(color[1]))
    buf.append("O won\n");
    return buf.toString();
    // return whether columns col has room
    final boolean isplayable(int col)
    return islegal(color[nplies&1] | (1L << height[col]));
    // return whether newboard lacks overflowing column
    final boolean islegal(long newboard)
    return (newboard & TOP) == 0;
    // return whether newboard is legal and includes a win
    final boolean islegalhaswon(long newboard)
    return islegal(newboard) && haswon(newboard);
    // return whether newboard includes a win
    final boolean haswon(long newboard)
    long y = newboard & (newboard>>HEIGHT);
    if ((y & (y >> 2*HEIGHT)) != 0) // check diagonal \
    return true;
    y = newboard & (newboard>>H1);
    if ((y & (y >> 2*H1)) != 0) // check horizontal -
    return true;
    y = newboard & (newboard>>H2); // check diagonal /
    if ((y & (y >> 2*H2)) != 0)
    return true;
    y = newboard & (newboard>>1); // check vertical |
    return (y & (y >> 2)) != 0;
    void backmove()
    int n;
    n = moves[--nplies];
    color[nplies&1] ^= 1L<<--height[n];
    void makemove(int n)
    color[nplies&1] ^= 1L<<height[n]++;
    moves[nplies++] = n;
    public static void main(String argv[])
    Connect4 c4;
    String line;
    int col=0, i, result;
    long nodes, msecs;
    c4 = new Connect4();
    c4.reset();
    BufferedReader dis = new BufferedReader(new InputStreamReader(System.in));
    for (;;) {
    System.out.println("position " + c4.positioncode() + " after moves " + c4 + "enter move(s):");
    try {
    line = dis.readLine();
    } catch (IOException e) {
    System.out.println(e);
    System.exit(0);
    return;
    if (line == null)
    break;
    for (i=0; i < line.length(); i++) {
    col = line.charAt(i) - '1';
    if (col >= 0 && col < WIDTH && c4.isplayable(col))
    c4.makemove(col);
    By the way im using Ready to program for the programming.

    You can't really believe that his brother did this
    for him...I did miss that copyright line at the beginning when
    I first looked it over, but you know, if it had been
    his brother, I'd be kinda impressed. This wasn't a
    25 line program. It actually would have required
    SOME thought. I doubt my brother woulda done that
    for me (notwithstanding the fact that I wouldn't need
    help for that program, and my brother isn't a
    programmer).I originally missed the comments at the top but when I saw the complexity of what was written then I knew that it was too advanced for a beginner and I relooked through the code and saw the comments.

  • Help with Recurrsion program

    I seem to be having a little problem with my program. In my main program, depending on which method comes first, the other methods wont work for example the way my main program is not, with occurance method before removeLetter method, the occurance method works fine, but my removeLetter meth won't remove the letter. But if i switch the two and have removeLetter first then it will remove the letter, but my occurance method will come back say the letter is not in the word even when it is...can someone help me? Thanx in advance...
    class CharacterRecurrance{
         private int i=0;
         private int occur=0;
         void inString(String s, char n){
              if(i<s.length()){
                   if(s.charAt(i)==n)
                        System.out.println("Yes, the letter" + " " + n + " " + "is present");
                   else{
                        i++;
                        inString(s,n);
              else System.out.println("No, the letter" + " " + n + " " + "is not present");
         void occurance(String s, char n){
              if(i < s.length()){
                   if(s.charAt(i)==n){
                        occur++;
                        i++;
                        occurance(s,n);
                   else{
                        i++;
                        occurance(s,n);
              else System.out.println("The letter" + " " + n + " " + "appears" + " " + occur + " " + "times");
         void removeLetter(String s, char n){
              if(i < s.length()){
                   if(s.charAt(i)==n){
                        s = s.replace(s.charAt(i),' ');
                        i++;
                        removeLetter(s,n);
                   else{
                        i++;
                        removeLetter(s,n);
              else System.out.println(s);
    class Program3_10{
         public static void main(String[] a) {
              CharacterRecurrance find = new CharacterRecurrance();
              String word = "mississippi";
              char letter = 's';
              find.inString(word, letter);
              System.out.println();
              find.occurance(word, letter);
              System.out.println();
              find.removeLetter(word, letter);
    }

    Or make it zero in the last step of each function. Like this-void occurance(String s, char n){
              if(i < s.length()){
                   if(s.charAt(i)==n){
                        occur++;
                        i++;
                        occurance(s,n);
                   else{
                        i++;
                        occurance(s,n);
              else{
                   System.out.println("The letter" + " " + n + " " + "appears" + " " + occur + " " + "times");
                   i=0; // reset to zero.
         }

  • Need help with inventory program!!! someone please help me!!!

    Ok I have to write this inventory program for one of my classes.
    For part one i needed to Create a product class that holds the item number, the name of product, the number of units in stock, and the price of each unit.
    Then create a java application that displays all of the above info plus the total value of the inventory. I have done this so far with success.
    For part two i needed to modify the program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time including the item number, the name of the product, the number of units in stock, the price per unit, and the value of the inventory of that product. In addition, the output should display the value of the entire inventory.
    so create a method to calculate the value of the entire inventory.(i did this)
    and create another method to sort the array items by the name of the product. ( i did this)
    The program compiles and runs fine except it is not doing anything from part two. It just does the same thing that it did when i wrote part one.
    Does anyone know why or what i need to do to my code.
    Here is my code.
    import java.util.Scanner; // program uses class Scanner
    import java.util.Arrays;
    class ProductList
      Product[] products = new Product[100]; // an array of 100 pruducts
      private void populate() {
        products[0] = new Product(0, "Good Luck Chuck"      , 25, 4.95);
        products[1] = new Product(1, "The Bourne Identity"  ,  3, 7.95);
        products[2] = new Product(2, "The Reaping"          ,  5, 8.99);
          products[3] = new Product(3, "Deja Vu"              ,  2,12.99);
          products[4] = new Product(4, "I Know Who Killed Me" ,  3,10.95);
      private void sortByTitle() {
      private void print() {
        for(int i=0; i<products.length; i++) {
          System.out.println(products);
    private void printTotalInventoryValue() {
    System.out.println("Total Inventory Value = "+calculateTotalInventoryValue());
    private double calculateTotalInventoryValue() {
    double total = 0D;
    for(int i=0; i<products.length; i++) {
    total += products[i].calculateInventoryValue();
    return total;
    public static void main( String args[] ) {
    ProductList list = new ProductList();
    list.populate();
    list.sortByTitle();
    list.print();
    list.printTotalInventoryValue();
    } class Product
    private int id;
    private String title;
    private int stock;
    private double price;
    public Product(int id, String title, int stock, double price) {
    setId(id);
    setTitle(title);
    setStock(stock);
    setPrice(price);
    public int getId() { return this.id; }
    public void setId(int id) { this.id = id; }
    public String getTitle() { return this.title; }
    public void setTitle(String title) { this.title = title; }
    public int getStock() { return this.stock; }
    public void setStock(int stock) { this.stock = stock; }
    public double getPrice() { return this.price; }
    public void setPrice(double price) { this.price = price; }
    public double calculateInventoryValue() {
    return getStock() * getPrice();
    public class Inventorypt2
    private String ProductInfo; // call class product info
    public static void main(String args[])
    //create Scanner to obtain input from command window
    Scanner input = new Scanner( System.in );
    int num; // product's item number
    int stock; // number of items in stock
    double price; // price each of item
    ProductInfo product; // product information instance
    System.out.println(); // blank line
    String name = "go";
    // loop until sentinel value read from user
    while ( !name.equalsIgnoreCase ("stop") )
    System.out.print( "Enter DVD title, or STOP to quit: "); // prompt
    name = input.nextLine(); // read item name from user or quit
    System.out.print( "Enter the item number: "); // prompt
    num = input.nextInt(); // read item number from user
    while ( num <=0 ) //loop until item number is positive
    System.out.println ("Item number must be positive. Please re-enter item number: ");//prompt user to re-enter item number
    num = input.nextInt(); // read item number
    } //end while
    System.out.print( "Enter the quantity in stock: "); // prompt
    stock = input.nextInt(); // read stock quantity from user
    while ( stock <0 ) //loop until stock is positive
    System.out.println ("Quantity in stock can not be less than zero. Please re-enter the quantity in stock: ");//prompt user to re-enter quantity in stock
    stock = input.nextInt(); // read stock quantity from user
    } //end while
    System.out.print( "Enter the price of DVD: "); // prompt
    price = input.nextDouble(); // read item price from user
    while ( price <=0 ) //loop until price is positive
    System.out.println ("Product price must be positive. Please re-enter the price of the product: ");//prompt user to re-enter product price
    price = input.nextDouble(); // read item price from user
    } //end while
    product = new ProductInfo( num, name, stock, price); // initialize ProductInfo variables
    System.out.println(); // blank line
    System.out.printf( "Item Name: %S\n", product.getName());
    System.out.printf( "Item Number: %s\n", product.getNum());
    System.out.printf( "Qty. in Stock: %s\n", product.getStock());
    System.out.printf( "Price Each: $%.2f\n", product.getPrice());
    System.out.printf( "Total Value in Stock: $%.2f\n", product.getInventoryTotal());
    System.out.println(); // blank line
    System.out.print( "Enter DVD title, or STOP to quit: "); // prompt
    name = "";
    while ( name.equals("") )
    name = input.nextLine(); // read new product name from user or quit
    } //end while
    System.out.println(); // blank line
    System.out.println("Good Bye!"); // exit message
    Edited by: jay1981 on Mar 16, 2008 2:07 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You will get more help if your code is formatted better:
    * Only post code that is already formatted correctly including indentations.
    * Get rid of all those comments cluttering up your code.
    * Make sure your posted code compiles without need for any changes. Yours doesn't at present. Where is the ProductInfo class?
    Again, you want it easy for a volunteer here to read your post, otherwise he/she simply won't do it. Good luck.

  • Help with a Program I am writing!  Please!

    Hello All,
    This is my first post...I hope to find some answers to my program I am writing! A couple things first - I am 17, and have designed a comp. science class for myself to take while a senior in high school, since there was not one offered. My end of the 2nd term project is to write a program that encompasses the information I have learned about for the past two terms. I know the very basics, if that. Please help!
    My program involves the simple dice throwing program, 'Dice Thrower' by Kevin Boone. The full text/program write out can be found at:
    http://www.kevinboone.com/PF_DiceThrower-java.html
    I am hoping to add a part to this program that basically tells the program if the dice show doubles, pop up a little GUI window that says "You are a Winner! You Got Doubles!"
    I was thinking as I finished chapter 7 in my text book, that either an 'if/else' or 'switch' statement might be the right place to start.
    Could someone please write me a start to the program text that I need to add to 'Dice Thrower', or explain what I need to do to get started! Thank you so much, I really appreciate it.
    Erick DeVore - Eroved Kcire

    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JLabel;
    import javax.swing.JFrame;
    import java.awt.FlowLayout;
    import java.awt.Color;
    public class DiceThrower extends Applet
    Die die1;
    Die die2;
    public void paint (Graphics g)
         die1.draw(g);
         die2.draw(g);
         g.drawString ("Click mouse anywhere", 55, 140);
         g.drawString ("to throw dice again", 65, 160);
    public void init()
         die1 = new Die();
         die2 = new Die();
         die1.setTopLeftPosition(20, 20);
         die2.setTopLeftPosition(150, 20);
         throwBothDice();
         // Erick's Program Insert below
         public class WinnerGui extends JFrame;
      public WinnerGui();
        super ("You Are The Winner with GUI");
        Container c = getContentPane();
        c.setBackground(Color.lightGray);
        c.setLayout(new FlowLayout());
        c.add(new JLabel("You're a Winner! You Got Doubles!"));
            //End Erick's Program insert
         DiceThrowerMouseListener diceThrowerMouseListener =
              new DiceThrowerMouseListener();
         diceThrowerMouseListener.setDiceThrower(this);
         addMouseListener(diceThrowerMouseListener);
    public void throwBothDice();
         die1.throwDie();
         die2.throwDie();
         repaint();
    class Die
    int topLeftX;
    int topLeftY;
    int numberShowing = 6;
    final int spotPositionsX[] = {0, 60,  0, 30, 60,  0,  60};
    final int spotPositionsY[] = {0,  0, 30, 30, 30,  60, 60};
    public void setTopLeftPosition(final int _topLeftX, final int _topLeftY)
         topLeftX = _topLeftX;
         topLeftY = _topLeftY;
    public void throwDie()
         numberShowing = (int)(Math.random() * 6 + 1);
    public void draw(Graphics g)
         switch(numberShowing)
              case 1:
                   drawSpot(g, 3);
                   break;
              case 2:
                   drawSpot(g, 0);
                   drawSpot(g, 6);
                   break;
              case 3:
                   drawSpot(g, 0);
                   drawSpot(g, 3);
                   drawSpot(g, 6);
                   break;
              case 4:
                   drawSpot(g, 0);
                   drawSpot(g, 1);
                   drawSpot(g, 5);
                   drawSpot(g, 6);
                   break;
              case 5:
                   drawSpot(g, 0);
                   drawSpot(g, 1);
                   drawSpot(g, 3);
                   drawSpot(g, 5);
                   drawSpot(g, 6);
                   break;
              case 6:
                   drawSpot(g, 0);
                   drawSpot(g, 1);
                   drawSpot(g, 2);
                   drawSpot(g, 4);
                   drawSpot(g, 5);
                   drawSpot(g, 6);
                   break;
    void drawSpot(Graphics g, final int spotNumber)
         g.fillOval(topLeftX + spotPositionsX[spotNumber],
              topLeftY + spotPositionsY[spotNumber], 20, 20);
    class DiceThrowerMouseListener extends MouseAdapter
    DiceThrower diceThrower;
    public void mouseClicked (MouseEvent e)
         diceThrower.throwBothDice();
    public void setDiceThrower(DiceThrower _diceThrower)
         diceThrower = _diceThrower;
    }That was what I have dwindled it down to, using my knowledge, as well as others' expertise...however I am listening to what you say, and get these messages when I try to compile in the CMD:
    line 63 - illegal start of expression (carrot at p in public)
    line 63 - ; expected (carrot at c in class)
    line 63 - { expected (carrot at ; at end of line)
    line 65 - illegal start of expression (carrot at p in public)
    line 83 - <identifier> expected (carrot as: (this) ) -- I don't even know what that means ^
    line 84 - invalid method declaration; return type required (carrot at a in add)
    line 84 - <identifier> expected (carrot like this: [see below])
    addMouseListener(diceThrowerMouseListener);
    ^
    line 84 - ) expected (carrot is one place over from previous spot [see above]
    line 93 - illegal start of expression (carrot at p in public)
    I know this seems like a lot of errors, but believe it or not, I actually had it up in the high teens and was able to fix some of them myself from going by previous examples, as well as looking things up in my text book. If anyone has any suggestions concerning the syntax errors of the code, please please let me know and I will work my hardest to fix them...thank you all so much for helping.
    Erick

  • Help with Shared Libraries?

    I don't have a "Look for Shared Libraries" under Preferences >  Sharing (which the other two computers in my home do have), all I have is the  "Shared Libraries" under Preferences > General > Sources (which  this is checked).  I have uninstalled iTunes and then installed it again, this did not work.  The other two computers in my home are running off of Windows XP, but the trouble computer is running off of Windows Vista.  Not sure if this could be the problem. Please help.

    krysto wrote:Yes, I have used pacman before to install software, but what if I want to contribute to the development of a project?
    Usually when you are developing software you don't install the package every time you compile it. You just make sure that you can run it from the location where you compiled it. That way you can keep the latest stable version that you can use for leisure time and the development version for testing. Also for contributing to a project you should directly interact with the project's repository (svn, git, ...). So I refer back to my first post here where the PKGBUILD can give you an idea how to go about compiling the source code yourself.
    Just don't run "make install" because that will leave your system in a messy state, a simple "make" (with the proper configuration) should result in a locally build binary that you can run from where it was compiled.

Maybe you are looking for

  • What does the xantrex driver error 5 mean and how to solve it?

    Dear Experts, I downloaded a new XANTREX driver and used it to control our new XHR 150-7 power supply. I tried to use the GET STRAT.vi to control the output of the power supply. The output could be controlled according to the command input. However,

  • 5700 transformers

    Hi, i wanna ask about the new phone 5700 transformesrs i've heared that it's at china now.. my question that when it will appear in the egyptian market? and if it will apear or not and also if it's real or fake i mean about the phone itself ... !! th

  • Customer adavnces and retention in Billing

    Hello Friends, Good Morning! We have customer Advance and retention. These are manual condtion in Sale order(both are Statistical conditions). The clients requirement is flow the accounting documents as below: Example: customer invoice 100000        

  • Unable to load module "oracleasm" on z/os

    I am trying to install Oracle 10.2 on Linux on IBM z/os. I am having a problem with using asm. The following is a screen shot of what I did: linux:~ # id oracle uid=103(oracle) gid=105(oinstall) groups=105(oinstall),6(disk),106(dba) linux:~ # /etc/in

  • Magic mouse clicks unresponsive after 10.9.1 upgrade

    Hi Everyone, I have just updated my Mac to 10.9.1 this morning and since the update, I am having issues with Apple's Magic Mouse. Everything seems to work fine but clicking is very unresponsive and I now have to click 5 - 6 times before a "left or ri