-
Posts
334 -
Joined
-
Last visited
Awards
This user doesn't have any awards
About huracan
- Birthday Jul 13, 1996
Profile Information
-
Gender
Male
-
Location
vancouver
-
Interests
Anime,badminton and a PC gamer. oh and sometimes,i mean like on a extremely rare occasion i read some books :p
-
Occupation
student
System
-
CPU
AMD FX8320
-
Motherboard
ASROCK 970 EXTREME 3 R 2.0
-
RAM
G.skill ripjawsx DDR3
-
GPU
Powecolor PCS+ r9 390
-
Case
CORSAIR 200R
-
Storage
segate Barracude 1TB SSHD
-
PSU
evga 600b
-
Display(s)
lg 21.5 inch 1080p ips
-
Cooling
CM hyper 212 evo
-
Keyboard
Ducky zero one cherry MXblues
-
Mouse
Tek Syndicate standard issue mouse
-
Sound
razer kraken
-
Operating System
window 8.1
huracan's Achievements
-
gee thanks for the suggestion on r/reddit
-
Hey im learning java and ive been given a task to debug a code and ive been able to debug it for all of it except for 2 errors and im unable to understand them. please help me understand them. public class Debug5{ public static void main(String[] args){ int a = 0, b = 0; while(sum < 100){ addNums(a,b); System.out.println(sum); b += 5; a++; }//end while loop }//end main public static void addNums(a, b){ //THIS IS LINE 20 int a, b; int sum = a + b; return sum; }//end add nums } HERE are the errors Debug5.java:20: error: <identifier> expected public static void addNums(a, b){ ^ Debug5.java:20: error: <identifier> expected public static void addNums(a, b){
-
never mind i figured it out again its the same answer ... derp
-
hey im back with another question... so i have improved apon my code but im getting this error but i did initialize the variable Sandwich1.java:101: error: variable sammichPrice might not have been initialized System.out.println("you have ordered a " + sammichSize + " " + sammichType + " sandwich. youre total is: " + "$" + sammichPrice ); import java.util.Scanner; public class Sandwich1{ public static void main(String[] args){ int sizeInp; //Declaration part int menuInp; double extraPrice; double sammichPrice; String sammichType =new String() ; String sammichSize = new String(); Scanner sc = new Scanner(System.in); printMenu(); menuInp = sc.nextInt(); if (menuInp == 4){ // ONLY CUSTOM SANDWICH PART printBread(); //BREAD PART int breadInp = sc.nextInt(); if (breadInp ==1){ extraPrice = 1; } else { extraPrice =0; } printSauce(); // SAUCE PART int sauceInp = sc.nextInt(); if (sauceInp == 1){ extraPrice = extraPrice + 0.5; } else{ System.out.println("please only enter the given options"); } printRegToppings();// TOPPING PART REGULAR double regToppingInp = sc.nextDouble(); if (regToppingInp >3){ regToppingInp = (regToppingInp - 3)*0.5 ; extraPrice = extraPrice + regToppingInp; } else if(regToppingInp <0){ System.out.println("please enter only positive number of toppings"); } printPremToppings();//PREMIUM TOPPING PART double PremToppingInp = sc.nextDouble(); if (PremToppingInp > 0){ PremToppingInp = (PremToppingInp - 1) * 1.50; extraPrice = extraPrice + PremToppingInp; } else if(PremToppingInp < 0) { System.out.println("please enter only positive number of toppings"); } printSizes(); sizeInp = sc.nextInt(); //SIZE OF THE SANDWICH if (sizeInp == 1){ sammichSize = "half-size"; sammichPrice = 4.00; } else if (sizeInp == 2){ sammichSize = "Full-size"; sammichPrice = 6.50; } else { sammichSize = "Overstuffed"; sammichPrice = 8.00; } System.out.println("you have ordered a " + sammichSize + " Custom sandwich. you're total is: " + "$" + (sammichPrice + extraPrice) ); } else if (menuInp <= 3){ // PRE-MADE SANDWICH PART if (menuInp == 1){ sammichType = "Chicken Parmesan"; } else if (menuInp == 2){ sammichType = "Turkey Pesto"; } else if (menuInp ==3){ sammichType = "Breakfast Sandwich"; } printSizes(); sizeInp = sc.nextInt(); if (sizeInp == 1){ sammichSize = "half-size"; sammichPrice = 4.00; } else if (sizeInp == 2){ sammichSize = "Full-size"; sammichPrice = 6.50; } else if (sizeInp == 3) { sammichSize = "Overstuffed"; sammichPrice = 8.00; } System.out.println("you have ordered a " + sammichSize + " " + sammichType + " sandwich. youre total is: " + "$" + sammichPrice ); } else { System.out.println("please enter among only given options"); } } public static void printMenu(){ System.out.print("MENU: \n(Please select one of the following numerical options.)\n"); System.out.print("1 Chicken Parmesan \n2 Turkey Pesto\n3 Breakfast Sandwich\n" + "4 Build your own\n"); } // end printMenu public static void printSizes(){ System.out.print("\nSIZE:\n(Please select a size.)\n1 Half-size, $4.00\n2 Full-size, " + "$6.50\n3 Overstuffed, $8.00\n"); } // end printSizes public static void printRegToppings(){ System.out.print("\nREGULAR TOPPINGS:\nThe regular toppings are:\nTomato, Sprouts, " + "Mushroom, Cheddar, Red onion, Spinach, Jalapenos, Mozzarella\n\n" + "How many of these would you like?\n(Three are included and then " + "each additional regular topping costs $0.50.)\n"); } // end printRegToppings public static void printPremToppings(){ System.out.print("\nPREMIUM TOPPINGS:\nThe premium toppings are:\nChicken, Turkey, " + "Egg, Goat cheese, Grilled eggplant\n\n" + "How many of these would you like?\n(One is included and then " + " each additional premium topping costs $1.50.)\n"); } // end printPremToppings public static void printSauce(){ System.out.print("\nEXTRA SAUCE?:\nYour choice of sauce is included.\n" + "1 Add extra sauce, $0.50 \n2 Regular amount of sauce\n"); } // end printSauce public static void printBread(){ System.out.print("\nARTISAN BREAD?:\nYour choice of white, whole wheat, or rye bread is included.\n" + "1 Upgrade to artisan bread, $1.00 \n2 Regular bread\n"); } // end printBread } // end class
-
thank you for the help, it complied with out any errors and ran just the way i wanted it to. cheers to you man. also i shouldn't be using looping for this exercise as thats reserved for the next chapter...
-
so i did manage to declare the string at the beginning but im getting a different kind of error. Sandwich.java:39: error: variable sammichPrice might not have been initialized System.out.println("you have odered a" + sammichSize + sammichType + "sandwich. youre total is: " + sammichPrice ); Heres how i declared it String sammichType =new String() ; String sammichSize = new String();
-
that makes sense, but where im confused is the declaring part, how can i declare a string variable at the start? do i just type "String sammichType;" i think imma have to rework part of the code to use the print the result that way i want.
-
hi there when compiling im getting this error, please help me debug it Sandwich.java:44: error: cannot find symbol System.out.println("you have odered a" + sammichSize + sammichType + "sandwich. youre total is: " + sammichPrice ); ^ symbol: variable sammichSize location: class Sandwich Sandwich.java:44: error: cannot find symbol System.out.println("you have odered a" + sammichSize + sammichType + "sandwich. youre total is: " + sammichPrice ); ^ symbol: variable sammichType location: class Sandwich 2 errors HERES THE CODE: import java.util.Scanner; public class Sandwich{ public static void main(String[] args){ int sizeInp; int menuInp; double sammichPrice; Scanner sc = new Scanner(System.in); printMenu(); menuInp = sc.nextInt(); if (menuInp == 1){ String sammichType = "Chicken Parmesan"; } else if (menuInp == 2){ String sammichType = "Turkey Pesto"; } else if (menuInp ==3){ String sammichType = "Breakfast Sandwich"; } printSizes(); sizeInp = sc.nextInt(); if (sizeInp == 1){ String sammichSize = "half size"; sammichPrice = 4.00; } else if (sizeInp == 2){ String sammichSize = "Full size"; sammichPrice = 6.50; } else if (sizeInp ==3){ String sammichSize = "Overstuffed"; sammichPrice = 8.00; } System.out.println("you have odered a" + sammichSize + sammichType + "sandwich. youre total is: " + sammichPrice ); //printMenu(); //printSizes(); //printRegToppings(); //printPremToppings(); //printSauce(); //printBread(); } // end main public static void printMenu(){ System.out.print("MENU: \n(Please select one of the following numerical options.)\n"); System.out.print("1 Chicken Parmesan \n2 Turkey Pesto\n3 Breakfast Sandwich\n" + "4 Build your own\n"); } // end printMenu public static void printSizes(){ System.out.print("\nSIZE:\n(Please select a size.)\n1 Half-size, $4.00\n2 Full-size, " + "$6.50\n3 Overstuffed, $8.00\n"); } // end printSizes public static void printRegToppings(){ System.out.print("\nREGULAR TOPPINGS:\nThe regular toppings are:\nTomato, Sprouts, " + "Mushroom, Cheddar, Red onion, Spinach, Jalapenos, Mozzarella\n\n" + "How many of these would you like?\n(Three are included and then " + "each additional regular topping costs $0.50.)\n"); } // end printRegToppings public static void printPremToppings(){ System.out.print("\nPREMIUM TOPPINGS:\nThe premium toppings are:\nChicken, Turkey, " + "Egg, Goat cheese, Grilled eggplant\n\n" + "How many of these would you like?\n(One is included and then " + " each additional premium topping costs $1.50.)\n"); } // end printPremToppings public static void printSauce(){ System.out.print("\nEXTRA SAUCE?:\nYour choice of sauce is included.\n" + "1 Add extra sauce, $0.50 \n2 Regular amount of sauce\n"); } // end printSauce public static void printBread(){ System.out.print("\nARTISAN BREAD?:\nYour choice of white, whole wheat, or rye bread is included.\n" + "1 Upgrade to artisan bread, $1.00 \n2 Regular bread\n"); } // end printBread } // end class
-
im not one to judge your SR, as im a mere entry-lvl diamond and aim gets only better the more you play.
-
Okay so at 1:13 there are 3 people focusing on 1 Dva, thats a lot of resources spending over one person and ignoring the rest. at 1:37 you see that the friendly hog is getting shredded. Why not help a team mate with the Biotic filed, always keep an eye out for fellow team mates. at 2:17 when using ult, you see the small targets, but you just focus on hog who has a ton of health and can heal. Always focus on the small targets so that the enemy team has a number disadvantage. You do the same at 5:34 by ignoring junkrat. when dueling with the genji you never once melee'd him once. Don't forget to melee, its actually faster to finish an enemy with very low health off.
-
well its 405CAD which is way out of my price range.....but just curious do i really need freesync monitor even though its a 144hz because most of the game i play stay within the 144fps range?
-
huracan changed their profile photo
-
so i've been looking to buy a 144hz monitor and I couldn't decide whether to buy an Acer GN246HL 270CAD (the cheapest 144hz monitor) vs BenQ XL2411Z 330CAD.... that's a delta of 60$ and i hear a few things about Acer having " suffers from horrible overshoot ghosting and uses PWM dimming " and no backlight strobing. Now I don't know what those mean but is buy benQ over Acer for 60$ more worth it?
-
now thinking about it i dont think it was any kind of pun i think we can take it in a literal sense.
-
i dont know if u read the whole thing or not but i stated 250 CAD so thats like 190+ USD oh so its not that relevant ? i mean for the price im expecting some trade offs but not some game breaking trade-offs no pun intended