Why is this not working??? Help Please!!!!!!!!

I am creating a deck class.
What I have so far, does compile and runs, but it doesn't swith cards. When I am dealing a card, it always returns the same card.
Also I am using Jokers and Ace = 1 or Ace = 14(depending on what the user wants), but they aren't working either.
public class Deck {
//instance Variables
private Card[] DeckOfCards;
private int[] JokerValue;
private boolean [] jokerInDeck;
private int cardsUsed;
public boolean AceHigh;
boolean hasJokers;
private int value;// The value of this card, from 1 to 15.
private int suit;// The suit of this card, one of the constants
// SPADES, HEARTS, DIAMONDS, CLUBS.
//Names for suits
private final int Clubs = 0;
private final int Diamonds = 1;
private final int Hearths = 2;
private final int Spades = 3;
private final int Jokers= 4;
//Names for values
private final int Ace = 1;
private final int Two = 2;
private final int Three = 3;
private final int Four = 4;
private final int Five = 5;
private final int Six = 6;
private final int Seven = 7;
private final int Eight = 8;
private final int Nine = 9;
private final int Ten = 10;
private final int Jack = 11;
private final int Queen = 12;
private final int King = 13;
private final int HighAce = 14;
private final int Joker = 15;
//constructor deck of cards
public Deck() {
// Create an unshuffled deck of cards.
DeckOfCards = new Card[54];
int cardCt = 0;// How many cards have been created so far.
JokerValue = new int[2];//create joker
for(int j = 0; j<2;j++){
JokerValue[j] = 13;
//jokerInDeck[j] = true;// would this work
for (int suit = 0; suit < 4; suit++)
for ( int value = 1; value <= 13; value++ ) {
DeckOfCards[cardCt] = new Card(value,suit);
cardCt++;
cardsUsed = 0;
/*public Deck(boolean Jokers, boolean aceHigh) {
DeckOfCards = new Card[54];
int cardCt = 0;
hasJokers = Jokers;
AceHigh =aceHigh;
JokerValue = new int[2];
for(int j = 0; j<2;j++){
JokerValue[j] = 13;
jokerInDeck[j] = true;
for (int suit = 0; suit < 4; suit++){
for ( int value = 1; value <= 13; value++ ) {
DeckOfCards[cardCt] = new Card(value,suit);
cardCt++;
AceHigh = true;
cardsUsed = 0;
public void shuffle(){
// Put all the used cards back into the deck, and shuffle it into
// a random order.
for(int i = 53; i > 0; i--){
int rand = (int)(Math.random()*(i+1));
Card temp = DeckOfCards;
DeckOfCards[i] = DeckOfCards[rand];
DeckOfCards[rand] = temp;
cardsUsed = 0;
System.out.println("\nYour cards have been shuffled in a random order");
public Card dealCard(){
// Deals one card from the deck and returns it.
if (cardsUsed == 54)
shuffle();
cardsUsed++;
return DeckOfCards[cardsUsed - 1];
//New inner Class
class Card {
// Construct a card with the specified value and suit.
// Value must be between 1 and 13. Suit must be between
// 0 and 3. If the parameters are outside these ranges,
// the constructed card object will be invalid.
public Card(int Value, int Suit){
value = Value;
suit = Suit;
// Return the int that codes for this card's suit.
public int getValue(){
return value;
// Return the int that codes for this card's value.
public int getSuit() {
return suit;
// Return a String representing the card's value
// (If the card's suit is invalid, "??" is returned.)
public String getValueAsString(){
switch(value){
case Ace: return "A";
case Two: return "2";
case Three: return "3";
case Four : return "4";
case Five: return "5";
case Six: return "6";
case Seven: return "7";
case Eight: return "8";
case Nine: return "9";
case Ten: return "T";
case Jack: return "J";
case 12: return "Q";
case 13: return "K";
default: return "*";
//Return a string representing the cards value
//but with Aces set as high
public String setAceHigh(){
AceHigh = true;
switch(value){  
case HighAce: return "A";
case 2: return "2";
case 3: return "3";
case 4: return "4";
case 5: return "5";
case 6: return "6";
case 7: return "7";
case 8: return "8";
case 9: return "9";
case 10: return "T";
case 11: return "J";
case 12: return "Q";
case 13: return "K";
default: return "J";
} //would this set a value of an Ace as 14???
// Return a String representing the card's suit.
// (If the card's suit is invalid, "??" is returned.)
public String getSuitAsString(){
switch(suit) {
case 0: return "C";
case 1: return "D";
case 2: return "H";
case 3: return "S";
case 4: return "J";
default: return "";
// Return a String representation of this card, such as
public String toString(){
if (AceHigh = true){
return(setAceHigh() + "" + getSuitAsString());
}else{
return (getValueAsString() + "" + getSuitAsString());

> public class Deck {
>
//instance Variables
private Card[] DeckOfCards;It is almost universal in Java to write class names with upper case initial and variables with lower case; adopt it.
Currently I also favour using a trailing underscore to denote fields, but that is less universal.
>    private int[] JokerValue;
private boolean [] jokerInDeck;these are never used; what are they for?
>    private int cardsUsed;I'd call that cardsDealt: the deck deals them, but if they're put to any use it doesn't know ;).
>    public boolean AceHigh;
boolean hasJokers;
private int value;// The value of this card, from 1 to 15.
private int suit;// The suit of this card, one of the constantsWhat do you mean this card? These are the fields for the Deck class not for the Card class.
>    //Names for suits
//Names for valuesThese aren't names, they're values.
>    private final int King = 13;This is a final instance field with a constant value. Shouldn't it be a static field of the class, rather than taking up storage in every instance?
>    private final int HighAce = 14;No card appears to ever have this value
>    //constructor deck of cards
public Deck() {
// Create an unshuffled deck of cards.
DeckOfCards = new Card[54];
int cardCt = 0;// How many cards have been created so far.
JokerValue = new int[2];
for(int j = 0; j<2;j++){
JokerValue[j] = 13;
//jokerInDeck[j] = true;
}This can be better written using a static array assignment.
>    for (int suit = 0; suit < 4; suit++)
for ( int value = 1; value <= 13; value++ ) {
DeckOfCards[cardCt] = new Card(value,suit);
cardCt++;
}This passes the correct value and suit to each call to the Card constructor.
>       cardsUsed = 0;You now have an array of length 54 containing 52 Cards and 2 nulls.
>    }
>
public void shuffle(){Contrary to popular belief, this works fine. Though using Random.nextInt(deckSize) would be more efficient. The efficiency lost creating a double, then converting to int is greater than the gain in using a decrement.
>    public Card dealCard(){OK.
>     //New inner ClassIs this a meaningful comment? It's obviously an inner class, and 'New' doen;t mean anything here
>    class Card {
>
// Construct a card with the specified value and suit.
// Value must be between 1 and 13. Suit must be between
// 0 and 3. If the parameters are outside these ranges,
// the constructed card object will be invalid.Don't just put up with invalid inputs that cause unspecified behaviour later on. Make a fuss! Throw an exception.
>       public Card(int Value, int Suit){
value = Value;
suit = Suit;This constructor has no effect on the state of the Class object. The inner class does not declare any fields with these names, so these assignments set the field values in the outer class.
At the end of the outer loop in the constructor, the fields 'value' and 'suit' in the Deck object will be set to '13' and '3'.
>       }
>
// Return the int that codes for this card's suit.
public int getValue(){
return value;
}This method returns the value of the value field in the outer class instance; the Card class does not declare a field. The value returned will be the same for every class instance.
> // Return the int that codes for this card's value.Same bug as before.
>      // Return a String representing the card's value
// (If the card's suit is invalid, "??" is returned.)That's just a lie. The value returned has nothing to do with the suit.
>       public String getValueAsString(){
switch(value){
case Ace: return "A";...
default: return "*";} 
Stylistically I tend to do this sort of thing with arrays.
But that's not a big deal.       > //Return a string representing the cards value
//but with Aces set as high
public String setAceHigh(){
AceHigh = true;This is plain bad.
The aceHigh_ field is a property of the Deck, not the card; the method to set it should be in the Deck and getValueAsString should do what it says whether aces are high or not.
> // Return a String representing the card's suit.
// (If the card's suit is invalid, "??" is returned.)Again, the returned string is based on the suit field of the outer class, and the stated default value is not what the method returns.
> // Return a String representation of this card, such as
public String toString(){
if (AceHigh = true){
return(setAceHigh() + "" + getSuitAsString());
}else{
return (getValueAsString() + "" + getSuitAsString());
} The toString method of the inner class should not invoke methods which set fields in the outer class (even if it only sets them to the value they had before).
As the values of the srting returned is dependent onto on the state of the field in the outer class, this will return the same string for every class in the pack.
> }Fixing these, you might get something like:
import java.util.Random;
public class Deck {
  // class constants
  private static final int JOKER = 15;
  // essential instance state
  private final Card[] deckOfCards_;
  private final int jokers_;
  private final boolean aceHigh_;
  // mutable instance state
  private int cardsDealt_;
  // constructor deck of cards
  public Deck (int jokers, boolean aceHigh) {
    // complain if the number of jokers is invalid
    if ((jokers<0) || (jokers>2)) {
      throw new RuntimeException(jokers + " jokers? you must be joking!");
    jokers_ = jokers;
    aceHigh_ = aceHigh;
    // Create an unshuffled deck of cards.
    deckOfCards_ = new Card[52 + jokers];
    int cardCt = 0; // How many cards have been created so far.
    for (int suit = 0; suit < 4; suit++) {
      for ( int value = 1; value <= 13; value++ ) {
        deckOfCards_[cardCt] = new Card(value, suit);
        cardCt ++;
    // create some jokers
    for (int i=0; i<jokers; i++) {
      deckOfCards_[cardCt] = new Card();
      cardCt ++;
    cardsDealt_ = 0;
  public void shuffle(){
    Random random = new Random();
    // Put all the used cards back into the deck, and shuffle it into
    // a random order.
    int deckSize = deckOfCards_.length;
    for(int i = deckSize-1; i > 0; i--){
      int rand = random.nextInt(deckSize);
      Card temp = deckOfCards_;
deckOfCards_[i] = deckOfCards_[rand];
deckOfCards_[rand] = temp;
cardsDealt_ = 0;
System.out.println("\nYour cards have been shuffled in a random order");
public Card dealCard(){
// Deals one card from the deck and returns it.
if (cardsDealt_ >= deckOfCards_.length) {
shuffle();
cardsDealt_++;
return deckOfCards_[cardsDealt_ - 1];
// Card
class Card {
// fields for the value and suit
private final int value_;
private final int suit_;
// Construct a card with the specified value and suit.
// Value must be between 1 and 13. Suit must be between
// 0 and 3. If the parameters are outside these ranges,
// an exception will be thrown.
public Card (int value, int suit) {
if ((value<1) || (value>13) ||
(suit<0) || (suit>3)) {
throw new RuntimeException("Illegal Card");
value_ = value;
suit_ = suit;
// constructor for Jokers
public Card () {
value_ = JOKER;
suit_ = 4;
// Return the int that codes for this card's suit.
public int getValue(){
return value_;
// Return the int that codes for this card's value.
public int getSuit() {
return suit_;
// Return a String representing the card's value
// (If the card's suit is invalid, "??" is returned.)
public String getValueAsString(){
return VALUES[value_];
// Return a String representing the card's suit.
// (If the card's suit is invalid, "??" is returned.)
public String getSuitAsString(){
return SUITS[suit_];
// Return a String representation of this card, such as
public String toString(){
return getSuitAsString() + " " + getValueAsString();
// Names of suits and cards
static final String[] SUITS = {"H", "C", "D", "S", "J"};
static final String[] VALUES = {"?", "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "+"};
// test
public static void main (String[] args) {
Deck deck = new Deck(2, true);
deck.shuffle();
for (int i=0; i<10; i++) {
System.out.println(deck.dealCard());
Pete

Similar Messages

  • Why id this not working? Please Help...

    This part in my action performed is not working. the buttons on my second form is not responding at all!!! Please help ...
         public void actionPerformed(ActionEvent ae)
              if(ae.getSource() == itmAddD)
                   frmAddDriver.setVisible(true);
                   String name;
                   String surname;
                   String work;
                   int age = 0;
                   if(ae.getSource() == btnAddAD)
                   if(!((txtAgeAD.getText().equals("")) && (txtSurnameAD.getText().equals("")) && (txtNameAD.getText().equals(""))))
                             name = txtNameAD.getText();
                             surname = txtSurnameAD.getText();
                             try
                                  age = Integer.parseInt(txtAgeAD.getText());
                                  addDriver.add(new MyDriver(name, surname, age, cboWorkAD.getSelectedItem()));
                                  cboDriver.addItem(name);
                                  for(int i = 0; i < addDriver.size(); i++)
                                       System.out.println(addDriver.elementAt(i));
                             catch(NumberFormatException err)
                                  JOptionPane.showMessageDialog(frmMyGUI, "Age should be numeric","Error", JOptionPane.ERROR_MESSAGE);
                   else if(ae.getSource() == btnCancelAD)
                        frmMyGUI.dispose();

    You're a crazy maniac. The reason none of your buttons (bar one) are working is because you nested all the if statements....
    if(ae.getSource() == itmAddD)
        if(ae.getSource() == btnAddAD)
            // how is this ever going to be true?Un-nest them.
    Cheers,
    Radish21

  • HP pavilion dv6 microphone not working . help please . . .

    HP pavilion dv6 microphone not working . help please . . .

    Hi,
    DV6 is a series of hundreads of models, what is yours ? To help us answer question quicker, please read this:
       http://h30434.www3.hp.com/t5/First-Time-Here-Learn-How-to/Welcome-Get-started-here/td-p/699035
    You may wat to try this first:
    1. Right click speaker icon (right hand corner)
    2. Select Microphone devices
    3. Right click Microphone
    4. Enable it
    5. Click Apply/Ok
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HT202853 I have many project made in move HD that are not updating to the new iMovie 10 on my new iMac.  Why is this not working as stated?  How do I get my projects back from backup after old iMac crashed?

    I have many projects made in imovie HD that are not updating to iMovie 10 on my new iMac.  Why is this not working as stated on the article HT202853?  How do I get my projects back from backup after old iMac crashed?

    According to:
    Update projects and events from previous versions of iMovie in iMovie (2014) - Apple Support
    you can update from iMovie versions 7, 8 and 9, but iMovie HD is iMovie 6.
    Maybe you can update in two steps, first from iMovie 6 to iMovie 7, 8 or 9 then to iMovie 10. 
    Geoff.

  • The left side of my home button is screen is kinda feel like hollow when I tap it and it makes a sound too. It is bulge,a little. I thought every ipad is hard to touch but why mine is not? Help please,what should I do?

    The left side of my home button is screen is kinda feel like hollow when I tap it and it makes a sound too. It is bulge,a little. I thought every ipad is hard to touch but why mine is not? Help please,what should I do? Please I need your help.

    The damage has been done then
    Take it to Apple and pay for a replacement
    Here in the States a replacement cost $229
    Allan

  • On my iPhone 5 camera photographed not clear. blurry pictures, autofocus does not work. help please!

    on my iPhone 5 camera photographed not clear. blurry pictures, autofocus does not work. help please!

    Could you please describe how you are trying to delete a single text message and it will not work? What are you seeing in place of the trash can icon?

  • HSRP on 2 3550's not working, HELP please

    Hello Everyone,
    I am attempting to run and test HSRP but there seems to be some errors.
    My first switch is a Catalyst 3550 - 48 Port with SMI image
    My second switch is a Catalyst 3550 - 48 Port with EMI image.
    I configured HSRP on Vlan12 to try and see if my second switch will take over once I pull the cable out of the first one but it seems like it doesn't.
    In the "show standby" command, the second switch shows as "Active router" because I gave it higher priority and it sees the neighbor switch which shows as standby router, so hsrp sees both the switches, knows which one is active and which one is standby but yet when I pull the plug on the first one, network is down, as if it did not revert to the second switch.
    My cabling is as follows.
    First switch has the first GIG (over fiber) uplink to my provider, the second GIG port is connected to the second gig port on the second switch over fiber as well. The first gig port of the second switch is NOT connected to anything as I only have one provider.
    The two ports communicate since hsrp seems the neighbor switches.
    The two are configured like this 10.0.0.1 s virtual gateway. 10.0.0.2 is the address of first switch. 10.0.0.3 is address of second switch (backup one). Those IP's are on a MANAGEMENT VLAN which I gave as VLAN ID 100
    Now for the VLAN12 I am testing HSRP on, it has VALID INTERNET IP's and not local internal IP's.
    Once again, the virtual IP finishes with 225, and I configured 226 as IP on switch1, 227 as IP on switch2.
    I am NOT using the track option as I am not sure what it does, I only use the standby priority and preempt options.
    So to put it in brief, I am trying to make VLAN12 work with HSRP so that all traffic from VLAN 12 enters switch 1 (from the provider uplink) goes to switch2 since I set vlan12 with higher priority (hsrp) on switch2 goes to the servers, then comes back to switch2, routes to switch1 (since it has to uplink to provider) and out to the internet.
    I hope my formatting is not very bad and pretty much understandable.
    Can someone please tell me what I am doing wrong and why is hsrp not working for me?
    PS: I am suspecting the routing is not done well between one switch and the other so they cannot communicate the traffic, but I am not sure
    Please help me
    Thank You

    Hello,
    Ok I am copy and pasting the configs of INTERFACE FASTETHERNET 12, VLAN12 and SHOW STANDY on BOTH 3550's...
    NOTE: Port 12 is not connected at this point on standby 3550 to the 2950t anymore as I have disconnected the cable since it was not working, this is why there are less details for interface fast ethernet port 12 on standby switch, if you need full details I can give you more details once I connect it again, even with it disconnected, show standby shows the standby 3550 as active for Vlan12, but yet vlan12 operates out of active 3550 even when port 12 was active on standby one.
    For privacy reasons, I have XXX'ed the IP's
    Here is the data:
    --- ACTIVE 3550 -----------------
    interface FastEthernet0/12
    description Switch 8 Uplink
    switchport trunk encapsulation dot1q
    switchport trunk native vlan 12
    switchport trunk allowed vlan 1,3,12,100
    switchport mode trunk
    mls qos trust cos
    macro description cisco-switch
    auto qos voip trust
    wrr-queue bandwidth 10 20 70 1
    wrr-queue min-reserve 1 5
    wrr-queue min-reserve 2 6
    wrr-queue min-reserve 3 7
    wrr-queue min-reserve 4 8
    wrr-queue cos-map 1 0 1
    wrr-queue cos-map 2 2 4
    wrr-queue cos-map 3 3 6 7
    wrr-queue cos-map 4 5
    priority-queue out
    spanning-tree link-type point-to-point
    interface Vlan12
    ip address 2XX.XX.XX.226 255.255.255.224
    no ip redirects
    standby 12 ip 2XX.XX.XX.225
    standby 12 priority 95
    standby 12 preempt
    Vlan12 - Group 12
    State is Standby
    4 state changes, last state change 1d08h
    Virtual IP address is 2XX.Xx.XX.225
    Active virtual MAC address is 0000.0c07.ac0c
    Local virtual MAC address is 0000.0c07.ac0c (v1 default)
    Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.068 secs
    Preemption enabled
    Active router is 2XX.XX.XX.227, priority 110 (expires in 7.508 sec)
    Standby router is local
    Priority 95 (configured 95)
    IP redundancy name is "hsrp-Vl12-12" (default)
    Vlan100 - Group 10
    State is Active
    2 state changes, last state change 2d03h
    Virtual IP address is 10.0.0.1
    Active virtual MAC address is 0000.0c07.ac0a
    Local virtual MAC address is 0000.0c07.ac0a (v1 default)
    Hello time 3 sec, hold time 10 sec
    Next hello sent in 0.064 secs
    Preemption enabled
    Active router is local
    Standby router is 10.0.0.3, priority 100 (expires in 9.608 sec)
    Priority 150 (configured 150)
    IP redundancy name is "Hsrp-Vlan100" (cfgd)
    ---- STANDBY 3550 -------------------------
    interface FastEthernet0/12
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 1,3,12,100
    switchport mode trunk
    interface Vlan12
    ip address 2XX.XX.XX.227 255.255.255.224
    no ip redirects
    standby 12 ip 2XX.XX.XX.225
    standby 12 priority 110
    standby 12 preempt
    Vlan12 - Group 12
    Local state is Active, priority 110, may preempt
    Hellotime 3 sec, holdtime 10 sec
    Next hello sent in 0.126
    Virtual IP address is 2XX.XX.XX.225 configured
    Active router is local
    Standby router is 2XX.XX.XX.226 expires in 7.756
    Virtual mac address is 0000.0c07.ac0c
    2 state changes, last state change 1d08h
    IP redundancy name is "hsrp-Vl12-12" (default)
    Vlan100 - Group 10
    Local state is Standby, priority 100, may preempt
    Preemption delayed at most a further 0 secs for syncs
    Hellotime 3 sec, holdtime 10 sec
    Next hello sent in 2.348
    Virtual IP address is 10.0.0.1 configured
    Active router is 10.0.0.2, priority 150 expires in 7.752
    Standby router is local
    1 state changes, last state change 2d03h
    IP redundancy name is "Hsrp-Vlan100" (cfgd)
    Hope this helps you experts to help me :)
    Thanks

  • When i go in my settings on my ipod touch 3gen it says no wi-fi as in i cant connect to any wi-fi at all i tried to restore but did not work HELP PLEASE

    when i go in my settings on my ipod touch 3gen it says no wi-fi as in i cant connect to any wi-fi at all i tried to restore but did not work HELP PLEASE

    See:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar

  • After update.. i can not start the ipad, when i press agree in the terms ...it will freeze and the screen not working///help please

    after update.. i can not start the ipad, when i press agree in the terms ...it will freeze and the screen not working///help please

    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • HT201210 I can not restore my iPhone 4S itunes error says I have 29 and I put it in DFU mode and not working help please

    Hello

    I can not restore my iPhone 4S itunes error says I have 29 and I put it in DFU mode and not working help please

  • TS2755 When trying to open my mail, it opens then closes immediately, I've deleted the account and re-created it 3 times and also done a reset but still not working, help please

    When trying to open my mail, it opens then closes immediately, I've deleted the account and re-created it 3 times and also done a reset but still not working, help please

    Try closing all apps in Multitask Window
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe up on the screenshot of the app you want to exit.
    3. The app will fly off the screen

  • Why will this not work for combo box

    I need to know why this will not work a combobox but it works for text fields. Isay ther is an error in the doc.createTextNode.
    Please any help would be great.
    Thanks
    // Repeats for each Element in the User Configuration.
    item = doc.createElement("COMPANY_NAME"); // Create element
    item.appendChild( doc.createTextNode(SetupCompanyNameJText.getText()) );
    UserConfig.appendChild( item ); // atach element to User Config element
    item = doc.createElement("INTIALS"); // Create element
    item.appendChild( doc.createTextNode(SetupIntialsjComboBox.getSelectedItem()) );
    UserConfig.appendChild( item ); // atach element to User Config element
    item = doc.createElement("FIRST_NAME"); // Create element
    item.appendChild( doc.createTextNode(SetupFirstNamejText.getText()) );
    UserConfig.appendChild( item );

    when I do that I end up with the following
    Error: #:300: class Configuration not found in class
    any ideas
    thanks

  • IPOD VIDEO 30GP IS NOT WORKING HELP PLEASE :(

    ok ill tell the whole history i bought an ipod 30 gb when i got home with my ipod i plug it to my pc and my pc never detected it (I installed itunes before plug my ipod) and itunes detected either so next day i went to macshore where i bought it they took it and puted it on a idock then my ipod started and charged for 20 mins and the guy of macshore didnt know what to tell me why my ipod didnt work in home and my wiere is not the problem cuz it works fine with my brother's ipod nano
    please if anyone can tell me what to do ill apreciate for life

    You might want to make sure that iTunes 7 was
    properly installed, (Help > About iTunes) and that
    your computer does have USB 2.0 ports.
    Older USB ports on the computer can make it really
    difficult for the iPod to make a connection.
    Is the iPod displaying the Do Not Disconnect screen,
    when it is plugged in?
    how can you check to see if ports are older

  • TS3274 What woud I do if my screen is not responding? I can't unlock my mini ipad because the touchscreen is not working. help please.

    Hi guys, please help me. my son's mini ipad cannot be unlocked because the touchsreen is not responding.. help please. thank you.

    A reset should help. Tap and hold the Home button and the On/Off buttons for approximately 10-15 seconds, until the Apple logo reappears. When the logo appears, release both buttons.
    No content is affected by this procedure.

  • 100% width not working, help please?!

    Hopefully this image will help show the problem I am having, I will also paste the code I have so far just in case it is not readable in the image.
    I am working in Dreamweaver CC (current updates) on a Windows 7 64 bit platform.  I have built about a dozen web sites in dreamweaver, so I am not an expert, but I am not totally clueless either.  I have done what I am attempting to do on other websites, so I am completely stumped on what I am doing wrong here.  All help is appreciated!
    So, that's the intro!  Here is what I am trying to do:
    I want three background divs that are stacked one on top of the other, with all three of them spanning 100% of the screen, regardless of screen size (haven't set up media queries yet to go smaller, right now I am just trying to set it so that the backgrounds fill all screen sizes)
    So the top bar is the tan, then the middle bar is the dark brown, and the bottom bar is the yellowish.  At first I did not apply ANY width to "body" but I did try setting it to 100% as well.  Each of the three background divs were then added, and all three were set to 100%, with an image in the background (for the texture and color) set to repeat across.
    No matter what I try, the three bars seem to have a width limit of about 740 pixels.  It is not a setting I ever created, and I started the page as a blank html page--not from any template.  I can't find what is imposing this width setting on these elements.
    Here is the really weird thing...it actually DOES work on a wide screen--the bars go all the way across...it is on small screens (my fifteen inch test monitor, my iphone, ipad screen) that the backgrounds will not go across!
    The image in the header (all of the images are just one image) is 1280 pixels.
    I'm sure that someone is going to point me to something that makes me slap my forehead in total embarrassment, but I will gladly take the humiliation to be able to move forward on this project!  HELP?!
    Thank you,
    Michelle

    So, this is my update.  Taking all of Nancy's suggestions, I have rewritten my code, and as far as setting it up so that all three content areas have backgrounds that go all the way across the screen no matter what screen size (big or small) it all works--
    BUT, I do want to have the actual page contents confined to 1280 pixels at the largest (even if it involves scrolling on smaller screens), and I would like the confined content to be centered on the page.
    In the past, all I had to do was create a div container for that content, assign a width value, set right and left margins to auto, and this gave me centered content in the middle of the page.
    I attempted to create this center content by adding a div within the top bar (for example) and tried using both a "width: 1280px" value and a "min-width : 1280px" value, and both had the same affect that I was dealing with before--it imposes a width value on the 100% backgrounds--and the really weird thing to me is that it is NOT imposing a width value of 1280 on the backgrounds, it imposes a 780px value...even though that value is not used ANYWHERE on the page or in any of the css.
    This is the new html code, and below that is the new css style sheet:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="css/new_main_css.css" rel="stylesheet" type="text/css">
    <style type="text/css"></style>
    </head>
    <body>
    <div id="header_Bar">
        <div id="headerContainer">
          <div id="HeaderTop"><img src="images/header_images/header_images.png" width="100%" height="426" alt="xxxxxe is xxxxx's hair salon and day spa"/></div>
          <div id="navbar"></div>
        </div>
        </div>
      <div id="main_contentBar">
      </div>
      <div id="btm_contentBar"></div>
    </div>
    </body>
    </html>
    @charset "utf-8";
              -moz-box-sizing: border-box;
              -webkit-box-sizing: border-box;
              box-sizing: border-box;
              min-height: 369px;
    /**re-scales up to native image size**/
    img {max-width: 100%}
    body {
        margin:0;
        padding:0;
        background-color: #2c2117;
    #header_Bar, #main_contentBar, #btm_contentBar {
        width:100%;
              min-height: 475px;
    #header_Bar {
              background-image: url(../images/backgrounds/header_background.png);
              background-repeat: repeat-x;
    #main_contentBar {
              min-height: 100px;
    #btm_contentBar {
              min-height: 379px;
              background-image: url(../images/backgrounds/bottom_background.png);
              background-repeat: repeat-x;
    #header_Bar #headerContainer {
              min-width: 1280px;
    #headerContainer #HeaderTop  {
    #navbar {
              min-height: 40px;

  • Wireless not working HELP PLEASE

    Just today my wireless was working perfectly not problems at all. And then i get back from college 4 hrs later and it seems to not work anymore i called cisco and they want to charge me to fix it, and i dont have the money for it. I have tried reseting the router (pressing the small button with a paper clip for 30 seconds). And i have also unplugged it and plugged it back in and still nothing. I called my internet provider and my modem is working fine (im actually writing this with my laptop plugged straight into the modem via ethernet).  Could you guys help me out? exams are coming up and i cant keep taking turns using the internet with other people in my house, and i cant keep going to the library to study and do homework. Thanks, you have no idea how thankful ill be if this gets resolved    btw i have a cisco linksys E2500 series wireless router
    Solved!
    Go to Solution.

    If you have an extra ethernet cable you may reconfigure the router manually. For step-by-step instructions you may check it out from homesupport.cisco.com. You may also download the setup wizard from this website.

Maybe you are looking for