I need help!  This is urgent!

I was just browsing Safari like normal, and I opened up my bookmarks folder, and all of my bookmarks—thousands of them—had disappeared without a trace, as well as everything in the Favorites folder and the Reading List, both of which were also extensive.  It couldn't have been an iCloud syncing problem because I don't sync bookmarks on my phone with iCloud.  I tried rebooting Safari, hard-resetting my phone, and turning it off and on again.  I can't restore my phone because I have iCloud backups turned off.  What happened and how can I fix it?
Additionally, I've never backed up my phone or synced it with anything in any way, shape or form.

If you did a hard reset they're definitely gone by now.
-Ethan

Similar Messages

  • My iPad refuses to turn on... HELP THIS IS URGENT!

    Just thismorning i had my iPad 2 working fine... until it ran out of charge. Yes, I put it on the charger. Once it had been charging for about 30 minutes, i attempted to switch it on, but the apple logo sign never moved. At some times, the iPad returned to the normal unlock screen, but when i did, it froze and the frozen apple sign appeared again.
    I thought that maybe plugging it into my computer backup source would help... Well, it kinda helped but the iPad is reacting as if it is brand new and its name is now ''iPad'' when clearly, before i had this problem, it was named ''Nicole's iPad''.
    Please help, this is urgent! I have school on Tuesday and if it is not repaired by then, my assignments and homework will be lost. Thankyou

    Try to hard boot it by pressing home key and power key at same time  and keep them pressed to the count of one to fifteen. 
    And wait for few minutes it will work
    If its not working yet then connect it iTunes and update it to iOS 6,
    Before updating do not forget to back up your iPad 

  • My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    My new iPhone 4s and my iPad 1 have the same problem: While working on one of them, the screen goes black and the right back to home screen. I've tried resetting the iPad with no chages to this problem. Need help, this is anoying.

    I just did a reset all settings on both.
    Will see where this gets me.
    Thank you for your helpfull input.

  • Java using GUI's mixed with opengl... needs help...urgent....

    guys, i need help.... is anyone there have an idea about opengl...? ill attach 4 files that needs to be enhanced or debug for possible errors. to see the canvas... you should have atleast all the needed lib and jar of opengl in your pc.
    its urgent, its for our thesis actually....ill be dividing the codes with the use of (" **** ")sign...
    * Main.java
    * Created on 29 January 2007, 08:12
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package longgong;
    * @author welcome
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
            frmMain f = new frmMain();
    * frmMain.java
    * Created on November 10, 2006, 10:52 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package longgong; // create a floder named longgong and add the class inside
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    * @author all user
    public class frmMain extends JFrame implements ActionListener, ChangeListener, ItemListener{
        JPanel pnlWest, pnlEast, pnlCenter, pnlSouth, pnlTitle, pnlSlider, pnlPlayers;
        JSlider slrSpeed;
        JList lstResults;
        String varResults [] = new String[31];
        JLabel lblPlayers, lblTitle;
        JCheckBox lblPlayer1, lblPlayer2, lblPlayer3, lblPlayer4, lblPlayer5, lblPlayer6;
        ImageIcon imgDice1;
        MyCanvas canvas;
        JButton btnStart, btnStop;
        JMenuBar menuBar;
        JMenu menuFile, menuView, menuHelp;
        JMenuItem menuNew, menuExit, menuIn, menuOut, menuHigh, menuPlay, menuAbout;
        boolean isNew = false;
        /** Creates a new instance of frmMain */
        public frmMain() {
            setLayout(new BorderLayout());
            setTitle("Longgong");
            setSize(780,600);
            canvas = new MyCanvas(getSize().width, getSize().height);
            imgDice1 = new ImageIcon("c:\\java\\images\\one.png");
            menuBar = new JMenuBar();
            menuFile = new JMenu("File");
            menuView = new JMenu("View");
            menuHelp = new JMenu("Help");
            menuNew = new JMenuItem ("New Game");
            menuNew.addActionListener(this);
            menuExit = new JMenuItem ("Exit");
            menuExit.addActionListener(this);
            menuIn = new JMenuItem ("Zoom In");
            menuIn.addActionListener(this);
            menuOut = new JMenuItem ("Zoom Out");
            menuOut.addActionListener(this);
            menuHigh = new JMenuItem ("High Score");
            menuPlay = new JMenuItem ("How To Play");
            menuPlay.addActionListener(this);
            menuAbout = new JMenuItem ("About");
            menuAbout.addActionListener(this);
            menuFile.add(menuNew);
            menuFile.add(menuExit);
            menuView.add(menuIn);
            menuView.add(menuOut);
            menuView.add(menuHigh);
            menuHelp.add(menuPlay);
            menuHelp.add(menuAbout);
            menuBar.add(menuFile);
            menuBar.add(menuView);
            menuBar.add(menuHelp);
            setJMenuBar(menuBar);
            varResults[0] = "Dice Results";
            varResults[1] = "1. 3-4-2";
            varResults[2] = "2. 3-1-4";
            varResults[3] = "3. 3-6-5";
            slrSpeed = new JSlider(0, 100, 0);
            slrSpeed.setPaintTicks(true);
            slrSpeed.setMinorTickSpacing(1);
            slrSpeed.setPaintLabels(true);
            slrSpeed.setSnapToTicks(true);
            slrSpeed.addChangeListener(this);
            slrSpeed.setEnabled(false);
            btnStart =  new JButton("Start");
            btnStart.addActionListener(this);
            btnStop =  new JButton("Stop");
            btnStop.addActionListener(this);
            pnlWest = new JPanel();
            pnlEast = new JPanel();
            pnlCenter = new JPanel();
            pnlSouth = new JPanel();
            pnlTitle = new JPanel();
            pnlSlider = new JPanel();       
            pnlPlayers = new JPanel();
            pnlWest.setLayout(new BorderLayout());
            pnlEast.setLayout(new BorderLayout());
            pnlEast.setPreferredSize(new Dimension(100,400));
            pnlCenter.setLayout(new BorderLayout());
            pnlSouth.setLayout(new FlowLayout());
            pnlTitle.setLayout(new FlowLayout());
            pnlSlider.setLayout(new FlowLayout());       
            pnlPlayers.setLayout(new BoxLayout(pnlPlayers,BoxLayout.Y_AXIS));
            pnlPlayers.setPreferredSize(new Dimension(150,400));
            lblPlayers = new JLabel("  Players: Choice (s)");
            lblPlayer1 = new JCheckBox("None");
            lblPlayer1.addItemListener(this);
            lblPlayer2 = new JCheckBox("None");
            lblPlayer2.addItemListener(this);
            lblPlayer3 = new JCheckBox("None");
            lblPlayer3.addItemListener(this);
            lblPlayer4 = new JCheckBox("None");
            lblPlayer4.addItemListener(this);
            lblPlayer5 = new JCheckBox("None");
            lblPlayer5.addItemListener(this);
            lblPlayer6 = new JCheckBox("None");
            lblPlayer6.addItemListener(this);
            lstResults = new JList(varResults);
            pnlPlayers.add(lblPlayers);
            pnlPlayers.add(lblPlayer1);
            pnlPlayers.add(lblPlayer2);
            pnlPlayers.add(lblPlayer3);
            pnlPlayers.add(lblPlayer4);
            pnlPlayers.add(lblPlayer5);
            pnlPlayers.add(lblPlayer6);
            pnlSlider.add(slrSpeed);
            pnlSlider.add(btnStart);
            pnlSlider.add(btnStop);
            pnlEast.add(BorderLayout.CENTER, lstResults);
            pnlCenter.add(BorderLayout.SOUTH, pnlSlider);    
            pnlCenter.add(BorderLayout.CENTER, canvas);    
            lblTitle = new JLabel("LONGGONG DICE GAME SIMULATION");
            pnlTitle.add(lblTitle);
            getContentPane().add(BorderLayout.NORTH,pnlTitle);   
            getContentPane().add(BorderLayout.WEST,pnlPlayers);
            getContentPane().add(BorderLayout.EAST,pnlEast);
            getContentPane().add(BorderLayout.CENTER, pnlCenter);
            getContentPane().add(BorderLayout.SOUTH,pnlSouth);
            setResizable(false);
            canvas.start();
            show();       
        //name change when player is selected
        public void itemStateChanged(ItemEvent e) {
        Object source = e.getItemSelectable();
        int choice;
        if (source == lblPlayer1) {
            if (lblPlayer1.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer1);
        if (source == lblPlayer2) {
            if (lblPlayer2.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer2);
        if (source == lblPlayer3) {
            if (lblPlayer3.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer3);
        if (source == lblPlayer4) {
            if (lblPlayer4.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer4);
        if (source == lblPlayer5) {
            if (lblPlayer5.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer5);
        if (source == lblPlayer6) {
            if (lblPlayer6.isSelected()) {
                frmChoices fchoices = new frmChoices(lblPlayer6);
           // if (e.getStateChange() == ItemEvent.DESELECTED)
            //...make a note of it...
        //slider speed change
        public void stateChanged(ChangeEvent e){      
               canvas.speed(slrSpeed.getValue());
        public void actionPerformed (ActionEvent e){
            if (e.getActionCommand().equals ("Exit")){
                System.exit (0);     
            //connects to frmNew
            if (e.getActionCommand().equals ("New Game")){
                frmNew n = new frmNew(this);   
                lblPlayer1.setText("None");
                lblPlayer2.setText("None");
                lblPlayer3.setText("None");
                lblPlayer4.setText("None");
                lblPlayer5.setText("None");
                lblPlayer6.setText("None");
                isNew = true;
                lblPlayer1.setSelected(false);
                lblPlayer2.setSelected(false);
                lblPlayer3.setSelected(false);
                lblPlayer4.setSelected(false);
                lblPlayer5.setSelected(false);
                lblPlayer6.setSelected(false);
            if (e.getActionCommand().equals ("Start")){
               slrSpeed.setEnabled(true);
               canvas.setRandomDicePosition();
            if (e.getActionCommand().equals ("Stop")){
                slrSpeed.setValue(0);
                slrSpeed.setEnabled(false);
            //ADDED
             if (e.getActionCommand().equals ("New Game")){
               frmNew n = new frmNew(this);           
            if (e.getActionCommand().equals ("Zoom In")){
                canvas.zoomIn();          
            if (e.getActionCommand().equals ("Zoom Out")){
                canvas.zoomOut();          
            if (e.getActionCommand().equals ("How To Play")){
                frmPlay p = new frmPlay();           
            if (e.getActionCommand().equals ("About")){
                frmAbout a = new frmAbout();           
    package longgong;
    // Java  classes
       import java.awt.*;
       import java.awt.event.*;
       import java.net.URL;
    // GL4Java classes
       import gl4java.GLContext;
       import gl4java.awt.GLAnimCanvas;
       import gl4java.utils.textures.*;
       class MyCanvas extends GLAnimCanvas implements KeyListener, MouseListener
         // holds information on which keys are held down.
          boolean[] keys=new boolean[256];
          float     xrot;                    // X Rotation ( NEW )
          float     yrot;                    // Y Rotation ( NEW )
          float     zrot;                    // Z Rotation ( NEW )
          float[] diceRotX = new float[3];
          float[] diceRotY = new float[3];
          float[] diceRotZ = new float[3];
          float[] diceTranX = new float[3];
          float[] diceTranY = new float[3];
          float[] diceTranZ = new float[3];     
          float speedValue;
          Dice[] D;
          float zoom = -15.0f;
          public MyCanvas(int w, int h)
             super(w, h);
             //Registers this canvas to process keyboard events, and Mouse events
             addKeyListener(this);
             addMouseListener(this);  
             setAnimateFps(60); // seemed to be essential in getting any performance
             speedValue=0.0f;
             diceTranX[0] = -2.0f;
             diceTranY[0] = 2.0f;
             diceTranZ[0] = zoom;
             diceTranX[1] = 2.0f;
             diceTranY[1] = 1.0f;
             diceTranZ[1] = zoom;
             diceTranX[2] = 0.0f;
             diceTranY[2] = -2.0f;
             diceTranZ[2] = zoom;
          public void zoomIn(){
              zoom=zoom+1.0f;
           public void zoomOut(){
              zoom=zoom-1.0f;
          public void speed(float s){
            speedValue=s/100;
        /** void reshape(int width, int height) Called after the first paint command.  */  
          public void reshape(int width, int height)
             if(height==0)height=1;
             gl.glViewport(0, 0, width, height);                       // Reset The Current Viewport And Perspective Transformation
             gl.glMatrixMode(GL_PROJECTION);                           // Select The Projection Matrix
             gl.glLoadIdentity();                                      // Reset The Projection Matrix
             glu.gluPerspective(45.0f, width / height, 0.1f, 100.0f);  // Calculate The Aspect Ratio Of The Window
             gl.glMatrixMode(GL_MODELVIEW);                            // Select The Modelview Matrix
             gl.glLoadIdentity();                                      // Reset The ModalView Matrix     
       /** void preInit() Called just BEFORE the GL-Context is created. */  
          public void preInit()
          { doubleBuffer = true; stereoView = false; // buffering but not stereoview
          public void setRandomDicePosition(){
             for (int i=0; i<3; i++){
               D.setCoordinates(diceRotX[i],diceRotY[i],diceRotZ[i],diceTranX[i],diceTranY[i],diceTranZ[i]);
    D[i].getRandomDice();
    /** void init() Called just AFTER the GL-Context is created. */
    public void init()
    //float width = (float)getSize().width;
    //float height = (float)getSize().height;
    D = new Dice[5];
    D[0] = new Dice(this);
    D[1] = new Dice(this);
    D[2] = new Dice(this);
    //initialize dice location
    for (int i=0; i<3; i++){
    D[i].setCoordinates(diceRotX[i],diceRotY[i],diceRotZ[i],diceTranX[i],diceTranY[i],diceTranZ[i]);
    D[i].getRandomDice();
    gl.glEnable(GL_TEXTURE_2D);                              //Enable Texture Mapping ( NEW )
    gl.glShadeModel(GL_SMOOTH); //Enables Smooth Color Shading
    gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); //This Will Clear The Background Color To Black
    gl.glClearDepth(1.0); //Enables Clearing Of The Depth Buffer
    gl.glEnable(GL_DEPTH_TEST); //Enables Depth Testing
    gl.glDepthFunc(GL_LEQUAL); //The Type Of Depth Test To Do
    gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); //Really Nice Perspective Calculations
    public void DrawBoundaries(){
    double x,y;
    double radius = 5.0f;
    gl.glLoadIdentity();                                             // Reset The View
    gl.glTranslatef(0.0f,0.0f,zoom-1.0f);
    gl.glRotatef(90.0f,0.0f,0.0f,1.0f);
    gl.glColor3f(0.6f,0.3f,0.3f);
    gl.glBegin(gl.GL_POLYGON);
    // angle is
    // x = radius * (cosine of angle)
    // y = radius * (sine of angle)
    for (double a=0; a<360; a++) {
    x = radius * (Math.cos(a));
    y = radius * (Math.sin(a));
    gl.glVertex3d(x, y, 0.0f);
    gl.glEnd();
    gl.glColor3f(1.0f,1.0f,1.0f);
    public void DrawGLScene()
    gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);     // Clear The Screen And The Depth Buffer
    DrawBoundaries();
    for (int i=0; i<3; i++){
    D[i].startDiceMovement();
    D[i].setTz(zoom);
    D[i].setSpeed(speedValue);
    D[i].drawDice();
    for (int i=0; i<3; i++){
    //start of loop
    if(i!=0){    
    if (D[0].getMoveLeft()==true){        
    if ( (D[0].getTx()>=D[i].getTx()-1.0f) && (D[0].getTx()<=D[i].getTx()) ){
    if (D[0].getMoveLeft()== true) D[0].setMoveLeft(false);
    else D[0].setMoveLeft(true);
    }else{
    if ( (D[0].getTx()-1<=D[i].getTx()) && (D[0].getTx()-1>=D[i].getTx()-1) ){
    if (D[0].getMoveLeft()== true) D[0].setMoveLeft(false);
    else D[0].setMoveLeft(true);
    if (D[0].getMoveUp()==true){        
    if ( (D[0].getTy()>=D[i].getTy()-1.0f) && (D[0].getTy()<=D[i].getTy()) ){
    if (D[0].getMoveUp()== true) D[0].setMoveUp(false);
    else D[0].setMoveUp(true);
    }else{
    if ( (D[0].getTy()-1<=D[i].getTy()) && (D[0].getTy()-1>=D[i].getTy()-1) ){
    if (D[0].getMoveUp()== true) D[0].setMoveUp(false);
    else D[0].setMoveUp(true);
    }//end of if i!=0
    if(i!=1){    
    if (D[1].getMoveLeft()==true){        
    if ( (D[1].getTx()>=D[i].getTx()-1.0f) && (D[1].getTx()<=D[i].getTx()) ){
    if (D[1].getMoveLeft()== true) D[1].setMoveLeft(false);
    else D[1].setMoveLeft(true);
    }else{
    if ( (D[1].getTx()-1<=D[i].getTx()) && (D[1].getTx()-1>=D[i].getTx()-1) ){
    if (D[1].getMoveLeft()== true) D[1].setMoveLeft(false);
    else D[1].setMoveLeft(true);
    if (D[1].getMoveUp()==true){        
    if ( (D[1].getTy()>=D[i].getTy()-1.0f) && (D[1].getTy()<=D[i].getTy()) ){
    if (D[1].getMoveUp()== true) D[1].setMoveUp(false);
    else D[1].setMoveUp(true);
    }else{
    if ( (D[1].getTy()-1<=D[i].getTy()) && (D[1].getTy()-1>=D[i].getTy()-1) ){
    if (D[1].getMoveUp()== true) D[1].setMoveUp(false);
    else D[1].setMoveUp(true);
    }//end of if i!=1
    if(i!=2){    
    if (D[2].getMoveLeft()==true){        
    if ( (D[2].getTx()>=D[i].getTx()-1.0f) && (D[2].getTx()<=D[i].getTx()) ){
    if (D[2].getMoveLeft()== true) D[2].setMoveLeft(false);
    else D[2].setMoveLeft(true);
    }else{
    if ( (D[2].getTx()-1<=D[i].getTx()) && (D[2].getTx()-1>=D[i].getTx()-1) ){
    if (D[2].getMoveLeft()== true) D[2].setMoveLeft(false);
    else D[2].setMoveLeft(true);
    if (D[2].getMoveUp()==true){        
    if ( (D[2].getTy()>=D[i].getTy()-1.0f) && (D[2].getTy()<=D[i].getTy()) ){
    if (D[2].getMoveUp()== true) D[2].setMoveUp(false);
    else D[2].setMoveUp(true);
    }else{
    if ( (D[2].getTy()-1<=D[i].getTy()) && (D[2].getTy()-1>=D[i].getTy()-1) ){
    if (D[2].getMoveUp()== true) D[2].setMoveUp(false);
    else D[2].setMoveUp(true);
    }//end of if i!=2
    //end of loop for i
    /** void display() Draw to the canvas. */
    // Purely a Java thing. Simple calls DrawGLScene once GL is Initialized
    public void display()
    for(int i=0;i<3;i++){
    glj.gljMakeCurrent(); //Ensure GL is initialised correctly
    DrawGLScene();
    glj.gljSwap(); //Swap buffers
    glj.gljFree(); // release GL
    // Key Listener events
    public void keyTyped(KeyEvent e){
    public void keyPressed(KeyEvent e){
    switch(e.getKeyCode())
    //Kill app
    case KeyEvent.VK_ESCAPE:
    System.exit(0);
    break;
    default :
    if(e.getKeyCode()<250) // only interested in first 250 key codes, are there more?
    keys[e.getKeyCode()]=true;     
    break;
    public void keyReleased(KeyEvent e){
    if(e.getKeyCode()<250) // only interested in first 250 key codes, are there more?
    keys[e.getKeyCode()]=false;
    // mouse listener events
    public void mouseEntered( MouseEvent evt )
    Component comp = evt.getComponent();
    if( comp.equals(this ) )
    //requestFocus();
    public void mouseExited( MouseEvent evt ){
    public void mousePressed( MouseEvent evt ){
    public void mouseReleased( MouseEvent evt ){
    public void mouseClicked( MouseEvent evt )
    Component comp = evt.getComponent();
    if( comp.equals(this ) )
    requestFocus();
    * Dice.java
    * Created on 08 February 2007, 22:26
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package longgong;
    import java.net.URL;
    import gl4java.GLContext;
    import gl4java.awt.GLAnimCanvas;
    import gl4java.utils.textures.*;
    * @author welcome
    public class Dice {
          GLAnimCanvas glCanvas ;
          URL codeBase;
          int[]texture1 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture2 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture3 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture4 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture5 = new int[1]; //Storage for one texture ( NEW )    
          int[]texture6 = new int[1]; //Storage for one texture ( NEW )    
          float rx;
          float ry;
          float rz;
          float tx;
          float ty;
          float tz;
          float speed;
          boolean txMoveLeft;
          boolean tyMoveUp;
          boolean tzMoveFront;
        /** Creates a new instance of Dice */
        public Dice(GLAnimCanvas g) {
            glCanvas = g;       
            if(!LoadGLTexture("c:\\java\\images\\one.png",texture1)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\two.png",texture2)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\three.png",texture3)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\four.png",texture4)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\five.png",texture5)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            if(!LoadGLTexture("c:\\java\\images\\six.png",texture6)){
                System.out.println("Failed to load Textures,Bailing!");
                System.exit(0);
            txMoveLeft = true;
            tyMoveUp = true;
         public boolean inCircleBoundaries(float x, float y, float radius)
            float r;       
            r = (float)Math.sqrt((x*x) + (y*y));
            if (r <= radius)
                return  true;
            else
                return false;
        public void setCoordinates(float corRx,float corRy,float corRz,float corTx,float corTy,float corTz){
            rx = corRx;
            ry = corRy;
            rz = corRz;
            tx = corTx;
            ty = corTy;
            tz = corTz;
        public void getRandomDice(){
            int num = (int)(Math.random() * 6);
            if (num==1){
                rx=0.0f;
                ry=0.0f;
                rz=0.0f;
            else if (num==2){
                rx=90.0f;
                ry=0.0f;
                rz=0.0f;
            else if (num==3){
                rx=0.0f;
                ry=-90.0f;
                rz=0.0f;
            else if (num==4){
                rx=0.0f;
                ry=90.0f;
                rz=0.0f;
            else if (num==5){
                rx=-90.0f;
                ry=0.0f;
                rz=0.0f;
            else{
                rx=180.0f;
                ry=0.0f;
                rz=0.0f;
        public float getTx(){
            return tx+0.5f;
        public float getTy(){
            return ty+0.5f;
        public float getTz(){
            return tz+0.5f;
        public void setTz(float z){
            tz=z;
        public boolean getMoveLeft(){
            return txMoveLeft;
        public boolean getMoveUp(){
            return tyMoveUp;
        public void setMoveLeft(boolean m){
            txMoveLeft = m;
        public void setMoveUp(boolean m){
            tyMoveUp = m;
        public void startDiceMovement(){    
            if (txMoveLeft==true) {
                tx+=speed;           
            else {
                tx-=speed;
            if (tyMoveUp==true) {
                ty+=speed;
            else {
                ty-=speed;
            ry+=(speed*4);
            rx+=(speed*4);
            //rz+=(speed*2);
            //tx+=speed;
            //ty+=speed;
            //tz+=speed;             
         if (inCircleBoundaries(tx,ty,3.5f)==false) {  
            if (tx>=3.0f) txMoveLeft = false;
            if (tx<=-3.0f) txMoveLeft = true;
            if (ty>=3.0f) tyMoveUp = false;
            if (ty<=-3.0f) tyMoveUp = true;
        public void setSpeed(float s){
            speed = s;
         public void drawDice(){        
             glCanvas.gl.glLoadIdentity();                                             // Reset The View
             glCanvas.gl.glTranslatef(tx,ty,tz);
             glCanvas.gl.glRotatef(rx,1.0f,0.0f,0.0f);
             glCanvas.gl.glRotatef(ry,0.0f,1.0f,0.0f);
             glCanvas.gl.glRotatef(rz,0.0f,0.0f,1.0f);
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture1[0]);        
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Front Face
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f,  1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture6[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
               // Back Face          
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture2[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Top Face
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f, -1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture5[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Bottom Face
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f,  1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture3[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Right face
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f( 1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f( 1.0f, -1.0f,  1.0f);
             glCanvas.gl.glEnd();
             glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, texture4[0]);
             glCanvas.gl.glBegin(glCanvas.gl.GL_QUADS);        
                // Left Face
             glCanvas.gl.glTexCoord2f(0.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f, -1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 0.0f); glCanvas.gl.glVertex3f(-1.0f, -1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(1.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f,  1.0f);
             glCanvas.gl.glTexCoord2f(0.0f, 1.0f); glCanvas.gl.glVertex3f(-1.0f,  1.0f, -1.0f);
             glCanvas.gl.glEnd();
          public boolean LoadGLTexture(String fileName, int textureNumber[])
             PngTextureLoader texLoader = new PngTextureLoader(glCanvas.gl, glCanvas.glu);
             if(codeBase!=null)  
                texLoader.readTexture(codeBase, fileName);
             else
                texLoader.readTexture(fileName);
             if(texLoader.isOk())
                //Create Texture
                glCanvas.gl.glGenTextures(1, textureNumber);
                glCanvas.gl.glBindTexture(glCanvas.gl.GL_TEXTURE_2D, textureNumber[0]);
                glCanvas.gl.glTexParameteri(glCanvas.gl.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    ill attach 4 files that needs to be
    enhanced or debug for possible errors. i hate to break it to you, but even if you post this for the seventh time, finding and fixing errors in your code remains your task.

  • Need Help in BSP-Urgent

    Hi All,
    I am new in BSP and having some issues,need help from someone it is very urgent for me.
    1) How to create a F4 help/LOOKUP TABLE?
    Having one parameter like COMPANY NAME with search button.If i click on search button it should populate all the company information like company name,city and country into lookup table with filter option.If i select particular row from lookup table then company name should pass into parameter.
    2)Having 6 parameter's like Employe ID,name,email-id,phone,city and country.My requirement is if i enter employe ID and press enter then other detail should populate into corresponding parameter?
    If possible send me the code in ABAP.
    Appreciate your help.
    Thanks in Advance.
    Regards,
    Vicky

    Welcome to SDN
    You are aksing us to write the complete application for you. This is not the place for that. If you have some specific issues/clarification we are all more than happy to help you. For the kind of questions you had asked, you should first learn BSP by going through various resources here in SDN and in help.sap.com
    Regards
    Raja
    PS: avoid using urgent in your subject line.

  • Hi need help..very urgent..

    Hi ABAPers,
    I am very new to ABAP..i need help in coding this following logic,,,
    Can anyone help me in coding this following logic..
    Step 1.  Retrieve customer number KUNNR from VBAK
    Step 2.  Pass customer number KUNNR to KNA1 and retrieve address number-ADANR value
    Step 3.  Pass ADANR value to ADRC table to retrieve NAME3
    Please do reply guys..
    full marks would be given for the right answer.
    Regards
    Sahil

    If Windows Live Mail can export the mailboxes in .mbox format then they can be imported into Mail. Otherwise, you would need to export the accounts to Thunderbird, Netscape, or Office Entourage in order to directly import into Mail.

  • I need help..so urgent,pls help on this..i accidentally inserted my SD in the cd drive,how can i get it?does it will affect my computer's system?

    in need of help..i accidentally inserted my SD in the cd drive,does it will affect my computer system and function?

    Don't feel bad, you are not alone. Here is a 6 page thread (one of many others) that should be of help: https://discussions.apple.com/thread/2283444?start=0&tstart=0
    Some got them out and others had to take them in for service.

  • Need help wrt query urgently

    Hi ,
    I have two tables "table1" and "table2".Structure of the both tables are below:
    Table1:
    CustomerId
    CustFname
    CustLname
    Convertion_Date
    Table2:
    CustomerId
    DFname
    DLname
    CustomerId is used for joins .
    Now i need a query based on conversion_date.
    If conversion_date <sysdate
    then
    select CustomerId ,CustFname,CustLname,Convertion_Date from Table1
    else
    select CustomerId,DFname,DLname from Table2
    End .
    I need this functionality in a single query using case statement.
    Please help ..
    Thanks,
    Preethi MR

    Preethi MR wrote:
    Hi ,
    I have two tables "table1" and "table2".Structure of the both tables are below:
    Table1:
    CustomerId
    CustFname
    CustLname
    Convertion_Date
    Table2:
    CustomerId
    DFname
    DLname
    CustomerId is used for joins .
    Now i need a query based on conversion_date.
    If conversion_date <sysdate
    then
    select CustomerId ,CustFname,CustLname,Convertion_Date from Table1
    else
    select CustomerId,DFname,DLname from Table2
    End .
    I need this functionality in a single query using case statement.
    Please help ..
    Thanks,
    Preethi MRIs this urgent homework? Or urgent something else work?
    What exactly makes it urgent?

  • I am 67 years old and need help this a disgusting company that they can't help the elderly with phone support

    this a disgusting company that they can't give phone support to a 67 year old woman that doesn't understand all this giberish computer

    This is a user to user forum, not Adobe support... ask a question and someone may be able to help
    The information you need to provide when you ask a question is below... sorry... video editing IS fairly technical
    From the Premiere Elements Information FAQ http://forums.adobe.com/thread/1042180
    NOTE - McAfee kills the program http://forums.adobe.com/thread/1460089?tstart=0
    •You MUST use an account with Administrator Privileges to run Premiere Elements
    •(Doing Run as Administrator http://forums.adobe.com/thread/969395 [says Encore and also for "All" versions of Premiere] will sometimes fix "odd" errors)
    •What version of Premiere Elements? Include the minor version number (e.g., Premiere Elements 12 with the 12.0.1 update).
    •What operating system? This should include specific minor version numbers, like "Mac OSX v10.6.8"---not just "Mac"
    •Has this ever worked before?  If so, do you recall any changes you made to Premiere Elements, such as adding Plug-ins, brushes, etc.?  Did you make any changes to your system, such as updating hardware, printers or drivers; or installing/uninstalling any programs?
    •Have you installed any recent program or OS updates? (If not, you should. They fix a lot of problems.)
    •What kind(s) of image file(s)? When talking about camera raw files, include the model of camera.
    •If you are getting error message(s), what is the full text of the error message(s)?
    •What were you doing when the problem occurred?
    •What other software are you running?
    •Tell us about your computer hardware. How much RAM is installed?  How much free space is on your system (C:) drive?
    And some other questions...
    •What are you editing, and does your video have a red line over it BEFORE you do any work?
    •Which version of Quicktime do you have installed?

  • Hi i need help it's Urgent!

    Hi,
    Anyone help me ......................I want to know how to place an image on a panel at desired locations

    To do that you need to make your own class derived from JPanel (or Panel if you use awt) , and override the paint method.Here is some code :
    MyPanel extends JPanel {
    public MyPanel()
    super();
    //....other inits
    public void paint(Graphics g)
    String fileName=new String("file.gif");//or file.jpg
    Image img=Toolkit.getDefaultToolkit().getImage(fileName);
    int x_Position= 100; //desired x position;
    int y_Position= 100; //desired y position;
    g.drawImage(img, x_Position , y_Position,this);
    }

  • Need Help on ERMS(Urgent Please)

    Hi CRM Experts,
    Please help me on following Queris.
    1)can we place incoming email into categories/queues/pools based on email address, keywords, and/or rules?
    2)allow email to be manually moved between one queue and another?
    3)ability to assign multiple age thresholds to categories as a way of providing service level goals?
    4)can agent able to manually route the Email to another user?
    5)ability to define how long the user can hold the email without activity before returning it to the Queue?
    6)can we allow agents to manually pull any email from the Queue(as long they have been granted access)?
    7)Ability to perform a "bulk-resolution" or develop a relationship between the emails so that only one instance needs to be resolved?
    Please provide me solutions for above mentioned.
    Points will be rewarded.
    Thanks in Advance
    Sree

    Hi and Welcome to the Forums!
    Wow -- I've never seen that screen. Not at all sure what it even means. But, here's a process that I once found for recovering a bricked device...I've never had to use it, so I can't vouch for it's correctness...but at this point, what have you got to lose?
    http://adlen45.activeboard.com/index.spark?forumID=123568&p=3&topicID=18834966
    Hope it helps.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Please help, this is urgent

    Hi
    I have created a grid using JSP and HTML which has three columns and multiple rows. The cells are actually the text boxes and their names are EmpNo, Value1, and value2.
    And every row's column's control name is same.
    They display like this
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    EmpNo Value1 Value2
    Can anybody guide me how can I access a value from a specific row and specific control. I am having problem because each column control name is same.
    I know its possible in ASP using count method, because in ASP when you create a control with a same name, the ASP generates an array and it keeps the array name as control name, so that you can access the value through its subscript number. I was trying to do the same thing in JSP but couldn't do that.
    Please help me, I will really appreciate that.
    Thanks

    Can anybody guide me how can I access a value from a
    specific row and specific control. I am having
    problem because each column control name is same.
    I know its possible in ASP using count method,
    because in ASP when you create a control with a same
    name, the ASP generates an array and it keeps the
    array name as control name, so that you can access
    the value through its subscript number. I was trying
    to do the same thing in JSP but couldn't do that.HTML creates the array, so it works the same in JSP. Need to see your code to suggest why this might not be working for you.

  • DEAL OR NO DEAL HELP THIS IS URGENT PLEASE HELP ME!!!!!

    i have a project due in two days and i must create a deal or no deal game in java the following is the code i have currently created i am not very advanced so this is where i am at so far:
    // The "DealorNoDeal" class.
    import java.awt.*;
    import hsa.Console;
    import java.util.Random;
    public class DealorNoDeal
        static Console c;
        public static void main (String[] args)
            c = new Console (30, 110, 15, "DEAL OR NO DEAL");
            //setSize(500,500);
            double[] CasesValues = {.01, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, 1000, 5000, 10000, 25000, 50000, 75000, 100000, 200000, 300000, 400000, 500000, 750000, 1000000};
            double[] Case = new double [26];
            int number = 0, Choosen, Remove = 0, Offer = 0;
            double PlayerCase;
            Random generator = new Random ();
            boolean Picked = false;
            char Deal = ' ';
            boolean Not = false;
            String name;
            // USER ENTERS THEIR NAME
            c.println ("Please enter your name: ");
            name = c.readString ();
            c.println (" ");
            // THIS PUTS THE NUMBERS IN THEIR CASES
            for (int i = 1 ; i < 26 ; i++)
                number = generator.nextInt (26);
                Case = CasesValues [number];
    for (int i = 0 ; i < 13 ; i++)
    c.println (CasesValues [i] + "\t\t" + CasesValues [i + 13]);
    // THE USER CHOOSES THEIR CASE
    c.println ("Please Pick Your Case");
    Choosen = c.readInt ();
    PlayerCase = Case [Choosen];
    c.clear ();
    // THE USER PICKS 6 CASES TO REMOVE
    for (int x = 1 ; x < 7 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 19;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("ALRIGHT NOW YOU MUST OPEN 5 CASES");
    // THE USER PICKS 5 CASES TO REMOVE
    for (int x = 1 ; x < 6 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 14;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("ALRIGHT WE WILL CONTINUE TO OPEN CASES");
    // THE USER PICKS 4 CASES TO REMOVE
    for (int x = 1 ; x < 5 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 10;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("ALRIGHT WE WILL CONTINUE BY OPENING 3 CASES");
    // THE USER PICKS 3 CASES TO REMOVE
    for (int x = 1 ; x < 4 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 7;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("ALRIGHT," + name + "YOU MUST CHOOSE 2 CASES TO OPEN NOW");
    // THE USER PICKS 2 CASES TO REMOVE
    for (int x = 1 ; x < 3 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 5;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("ALRIGHT," + name + "YOU MUST CHOOSE 1 CASE TO OPEN NOW");
    // THE USER PICKS 1 CASES TO REMOVE
    for (int x = 1 ; x < 2 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 4;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("ALRIGHT," + name + "YOU MUST CHOOSE 1 CASE TO OPEN NOW");
    // THE USER PICKS 1 CASES TO REMOVE
    for (int x = 1 ; x < 2 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 3;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("ALRIGHT," + name + "YOU MUST CHOOSE 1 CASE TO OPEN NOW");
    // THE USER PICKS 1 CASES TO REMOVE
    for (int x = 1 ; x < 2 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 2;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("NOW ITS TIME TO OPEN ONE MORE CASE");
    // THE USER PICKS 1 CASES TO REMOVE
    for (int x = 1 ; x < 2 ; x++)
    c.print ("Please Choose Case To Remove: ");
    Remove = c.readInt ();
    for (int i = 1 ; i < 26 ; i++)
    if (Remove == i)
    c.clear ();
    c.println ("You Picked Case " + Remove + " That had a value of " + Case [i]);
    Case [i] = 0;
    c.println ();
    c.print ("Case Numbers Picked: ");
    for (int i = 1 ; i < 26 ; i++)
    if (Case [i] == 0)
    c.print (" " + i);
    c.println ();
    // CALCULATES AND MAKES OFFER
    for (int i = 1 ; i < 26 ; i++)
    Offer += Case [i];
    Offer = Offer / 2;
    c.clear ();
    c.println ("The Offer is: " + Offer);
    c.println ("DO YOU ACCPET (Y/N)");
    Deal = c.readChar ();
    if (Deal == 'Y' || Deal == 'y')
    c.clear ();
    c.println ("CONGRATS, YOU LEAVE WITH " + Offer + "DOLLARS");
    else if (Deal == 'N' || Deal == 'n')
    c.println ("NOW ITS TIME TO OPEN YOUR CASE, YOUR CASE CONTAINED " + (Offer * 2) + " DOLLARS");
    i would really appreciate it if you could show me how to tell the player when they have already chose a case and not let them choose it again and if possible have all the values display and eliminate the values as they the cases are opened my e-mail is [email protected] if you can e-mail there or add me on msn it would be really appreciated also for future reference thanks

    Why is everybody on this thread so violent.Nobody was violent.
    Just to address my first posts.
    1) The subject line is very annoying
    2) Asking for people to email you is not on
    3) The code is crap. It's unbearable lengthy and the more I looked at it the more I cringed. As you yourself noted in your reply more methods would be a good start. Even if hero were to get the program in it's current form to work then as a grade it gets no better than a D and possibly an F anyway.
    So while I think encouragement is fine and noble there are sometimes you have to call a spade a spade. The OP (_hero_) if he wants help here needs to be prepared to interact on the forum in a communally acceptable fashion (see 1 and 2) and to start from scratch with his code (see 3). While this may not be what the OP wanted to hear playing pollyanna about it is counter-productive.
    All I did was give my advice to the guy and now IM
    getting torn to pieces by prometheuzzzzzzz and
    marcrules.
    Look:
    1) I taught myself Java and I didn't learn the
    conventions properly (at all).
    2) I can't indent code directly in the java forum
    message editor.
    3) When I write my posts I often dont test them
    because they're pseudo-code so they dont need to be
    made in Eclipse or JCreator or w/e.There is a lot of whining going on here. Just take the advice given for what it is worth. Learn conventions. Start indenting. Stop using an IDE (for now).
    Above all stop taking it so personally. If you post code that is crap on this site more often then not someone will point it out. Subtly or un-subtly as the case may be.
    4) Stop being so violent towards people when they're
    asking for helpAgain see my previous points. Nobody was violent to anyone. Further the OP needs a wakeup call.
    >
    Does that explain why i code as i do?Not really.

  • I really need help, it's urgent, PLEASE!

    I got a Blackberry for Christmas, and of course I immediately tried to find out about applications. So, I installed "App World". When I started putting themes, applications, etc.. I received a message saying that I would exceed the space limit and that if that happened, I would have to pay € 0.50 per day. I did not realize this and have not given much attention, and I even deleted the message.This week I realized that I've lost more than € 20 in less than a month becauseof this! What can I do to STOP this?? PLEASE HELP ME! Thank you for your attention
    Solved!
    Go to Solution.

    lauraprovi wrote:
    What can I do to STOP this?? PLEASE HELP ME! Thank you for your attention
    The answer lies in your own hand... stop downloading piles of apps and themes.
    Those you've downloaded that consume mass quantities of data... delete them or at least close or exit those apps so they are not using data when closed.
    If you need more specific answer, please be specific about which apps you've down loaded and installed.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • SAXParser Exception - NEED HELP IT'S URGENT

    Hi, I'm stuck in this, I have this program that works running a script called runPatito.sh
    but everytime I run it it throws me the following error:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXParseException: Parser has reached the entity expansion limit "64,000" set by the Application.
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXParseException: Parser has reached the entity expansion limit &quot;64,000&quot; set by the Application.
    faultActor:
    faultNode:
    faultDetail:
    org.xml.sax.SAXParseException: Parser has reached the entity expansion limit "64,000" set by the Application.
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:251)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:168)
    at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    Now , I've been searching and actually I found that I need to increase the system property "EntityExpansionLimit" but unfortunately I haven't been able to do it...
    I found that I need to run my program with java -DentityExpansionLimit=1000000 and "everything else" as it says in all the forums...
    The script that I'm using have this:
    #!/bin/sh
    java -cp patitoApp-patito-client com.patitoC.patito.PatitoClient cold.xml hot.xml
    My problem here is I don't know where to add that line (-DentityExpansionLimit=1000000) in order for this to work properly.
    I would appreciate some help here...

    Hi before explainig other things I wanted to thank you all for replying this post and for trying to help me...
    There are two scripts involved in the proccess, one is the server and one is the client, both of them are running with the modification suggested, but it does not make any difference...
    I still have the exception of the SAXParser with the 64,000
    I even modified the classes because I'm using DocumentBuildFactory and I put the entityExpansionLimit as a property of the object created as I found it...
    Here's the code of those lines:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setAttribute("http://apache.org/xml/properties/entity-expansion-limit",new Integer("1000000"));
              factory.setAttribute("http://apache.org/xml/properties/elementAttributeLimit",new Integer(20));
    I think I need some more help regarding this problem...

  • Need help, this configuration is possible or not?

    Hi All,
    We have Server A, on which Oracle 11g Database is running, and Server B, on which we have TimesTen IMDB installed.
    Now the requirement is, on server A, we have two different tables in different schemas, lets say schemaA.TableA had 100 columns, and schemaB.TableB had 50 columns. Now from table A we wanted to take 10 columns and from table B we wanted to take 8 columns, combining these 18 columns, is it possible to cache and store into IMDB?
    What will be the approach to have this, any ideas help me out?
    Thanks,
    Sreenivas.

    Thank you for your update Chris. I am little bit elaborating my requirement, we have two big tables in our database, and the external application is hitting those two tables data (only specific columns data, not all columns in each table), to simplify the data required for that application, and to reduce the traffic to the Database server we wanted to create this cache table.
    Database Server: Schema A.Table A (100 Columns) Schema B.Table B (50 Columns)
    TimesTen Server: I need a table C (20 columns, combination of Table A and Table B). The external application also will access Table C instead of go and hit two tables in Database Server.
    So now please help me the possibilities how we can achieve this? Will it be possible or not?
    - Sreenivas.

Maybe you are looking for

  • Turning on the MB when docked...

    I use the Mini-DVI to VGA adapter to connect to my home LCD and essentially "dock" my MacBook. Every time I turn on the MB, I have to lift the lid and press the power button only to close it again. Is there any way to turn the MB on without opening t

  • Web flash galleries display photos in LR4.2 but html galleries don't

    Web flash galleries display photos in LR4.2 but html galleries don't. I get a black screen with "Loading" instead. And the loading never ends. Help? Thank you

  • Adding a Picture behind a movie clip??

    Ok I am shooting a movie. I want to have my cat walking through a city like he's larger than the city. Is there a way to replace the background I'm shooting with to a background of a city skyline? Is this possible to do in iMovie??

  • Photoshop 3 I keep getting a dialog box saying the program is not responding

    I keep getting a dialog box saying "Program is not responding" after opening up Photoshop Elements 3. I have to shut the program down and start over.

  • Crw32.exe encountered a problem

    I have a user that just received a new laptop with Crystal Developer 10 installed on it. The user is receiving an error when saving a report after it has been ran. If it is not run she does not get the error. Error: crw32.exe has encountered a proble