if you are trying to make it a menu-driven program(where user has to select from menu) then it is better to use do...while loop ,instead of while..!!! do-while will make the user to use your program...
Type: Posts; User: shilpy
if you are trying to make it a menu-driven program(where user has to select from menu) then it is better to use do...while loop ,instead of while..!!! do-while will make the user to use your program...
wuth an example i can make you understand. let the path of your folder is e:/java/program, where program is folder in which your programs are stored.
then in cmd prompt u'll use:
c:/> e: ...
'System.in' is line buffered . how??:confused:
NULL POINTER EXCEPTION ??? MEANS
--- Update ---
i still don't get it..!! :-ss
can someone please make me understand when to initialise a string 'null' and when not..?? :confused:
hey sheila....welcome to forum...!!!
so try this one as beginner..... If a five-digit number is store in a variable in code, write a program to print a new number by adding one to each of its digits. For example if the number that is...
first of all...get the two values that is to swap from the user with the help of scanner object.... then you can swap the values by taking a third temporary variable that stores the value of the...
can you please elaborate your problem??
.. means that you should ask the user to input the number of rows and number of columns and that rows and columns should be used instead of the constants that you are using. This will make your...
....so if i am getting right then i have to apply combinations in signs and a simple loop for numbers till the range entered ...!!! then i need not to apply "4* -1 = -4 " for making it negative...or...
...not to print in string...but for calculation part ...+ and - will be arranged in what manner....any sequence is used..?? please help me.. :/
.....+ and - signs will also have permutation and combination sort of loop...to decide their positions..???
but how to put signs between them....how to decide....i am really very confused..!!! :(
basically m unable to decode it ......we've to take combinations of all the numbers...that's fine but what to do with + or - signs arrangement.
i've tried a lot.....!!!! :(
Consider the sequence of digits from 1 through N (N<=9) in increasing order:
1 2 3 4 … N
Insert either a ‘+’ (for addition) or a ‘-‘ (for subtraction) between each of the digits so that the...
iam a new member...!!!
:rolleyes: