Zippyvinman 0 Newbie Poster

I have an Inspiron 1520 that I got from my parents. I went an started uninstalling a whole bunch of crap that they added. I think I may or may not have messed up my sound cards. In browser, no sound. In Steam (Gaming platform), no sound. In one game, WWII Online, I have sound. No where else does sound work. Under Steams "System Specs" page it lists that I have no sound card installed. Before, I had Sigmatel installed, and it says I still do. I went to the dell website, got the sound card for my computer, and when I tried to install it it said something about it not being for the correct computer. Help!

Zippyvinman 0 Newbie Poster

Sorry :(. I'm relatively new here & to programming.

Zippyvinman 0 Newbie Poster

It makes the program pause for 5 seconds. Doesn't he want to make it wait...?

Zippyvinman 0 Newbie Poster
try 
		{
		Thread.sleep(5000); // do nothing for 5000 milLiseconds (5 seconds)
		} 
		catch(InterruptedException e)
		{
		e.printStackTrace();
		}

Timer, no need for another method

Zippyvinman 0 Newbie Poster

I need to make the integer "order" save to a text file or database (All I need it to do is to count how many times you win & save it there). Every time the game starts up, I want it to read it, & every time the game is beat, I want it to add one(order++;). The game is really simple.

All you do is read the pizza order, and reply to it as it asks for each piece (of the order). Same w/ the house address & number

If anyone can also make things smaller with methods or something, go right ahead.

import java.util.Random;
import java.util.Scanner;

public class PizzaDelivery {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
	    Random generator = new Random();
	    int order = 1;
	    int top1 = generator.nextInt(6)+1;
		int top2 = generator.nextInt(6)+1;
		int top3 = generator.nextInt(6)+1;
		int crust = generator.nextInt(2)+1;
		int numhouse = generator.nextInt(50)+1;
		int numstreet = generator.nextInt(8)+1;
		int numguess = 0;
		String streetguess = "nul";
		String top12 = "nul";
		String top22 = "nul";
	    String top32 = "nul";
		String crust1 = "nul";
		String street = "nul";
		String cguess = "nul";
		String guess = "nul";
		if (top1 == top2 || top1 == top3)
		{
			top1 = generator.nextInt(6)+1;
			if(top1 == top2 || top1 == top3)
			{
				top1 = generator.nextInt(6)+1;
			}
				if(top2==top3)
				{
				top2 = generator.nextInt(6)+1;
				top3 = generator.nextInt(6)+1;
				}
		}
		if (top2 == top3)
		{
			top2 = generator.nextInt(6)+1;
			if(top2 == top3) …