String t="t"; is just so it reads that input as t, what do i expect i really dont understand, then the }s i have removed all of them and put them at the end,they still act same, now is only the if...
Type: Posts; User: bkd
String t="t"; is just so it reads that input as t, what do i expect i really dont understand, then the }s i have removed all of them and put them at the end,they still act same, now is only the if...
this is what i have now
//
import java.util.Scanner;
public class courseWork {
static int no_starter, no_mainCourse, no_desert, no_softDrink, no_coffee ;
public static void...
i really don't know how to do that, i have completely lost it
Yes exactly. then if comparison is true then execute the nextstep.
not an assignment statement, i meant literary it will take the response to know what to to do next, which is if t is been entered then the next thing is to ask the user of how many if not then skip...
it must save that response in other to determine the last answers, and must execute the next step which is another question.
ok, firstly it asks the user if he wants to order a starter if yes then it goes on to ask for how many starter he wants to order after her puts the number the program goes to the next and ask the...
all i want to do is, if the program ask if i want t order starter the i press t, then it ask me to enter the number of staters i want, but if i press n then it jumps that and straight away ask me if...
it seems alittle advance for me tho i checked through the API doc but i couldn't pull out anything as i'm not even sure what i'm looking for, pls help norm.
oke i have change the method of using string to scan the string, but what operator should i use here "if (input == t)" coz i tried using this" if (input != t)" and it work but it doesont matter...
this is the one that im currently working with, if u could just help me ajust it in such a way that i use the 'y' as input using the scanner instead of 1. And my if and else are too much and when the...
that was the only error message it showed coz im using eclipse.
this is the code that i was using input as string.
//
import java.util.*;
public class Course_work {
Scanner use = new Scanner(System.in);
yh it is suppose to look like ask if the user wants to order starter if "yes" then enter the amount, but i tried using the scanner to enter input as y which will be yes but its giving me error each...
oke now got it.:o
i don't really know how to do that. wrap my code how?
The owner of the ‘Lunch Café’ aims to sell daily a reasonably-priced three-course lunch to the local student community. To save costs, each day there is only a single choice of starter, main course...