My tablet is IKALL N9 .Recently,I started facing problem connecting it to the charger so I would adjust the charger a bit until it would show charging .But a few days back it stopped charging altogether.it won't show the charging sign neither with AC source nor the power bank.I even changed the...
Hey guys ,Figured out.
If you want to have a look
class search
{
int arr[]={25,81,101,56,24};
int bin_search(int lower,int upper,int v)
{
int middle=(lower+upper)/2;
if(upper<lower)
return(-1);
else if(arr[middle]==v)...
guys i designed another program with same method(int bin_search).once I get the cause for error,i'll change it in the main program.have a look.
i hope it"s easier to read.and i Still can't get it where the problem is.
yes.I have only one file with that name and also for execution I'm...
yes.thanks i was missing that point. i tried it that way and figured that it was executing infinitely . so i modified the function .
import java.io.*;
class Binsearch
{
int arr[];
int n;
static BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
Binsearch(int nn)
{
n=nn...
Summary:: I have to solve this problem stirctly according to the question that follows:
Mentor note: I edited the original code to add indentation and a few blank lines to make the code more readable, so line 43 is no longer the line in question.
so this is the question i tried but it gives...
Green chemistry is a new technique devoted to the synthesis, processing, and application of chemical
materials in such manner as to minimize hazards to humankind and the environment.
or we can also say that ,
Green chemistry is the strategy of designing chemical products and processes in a way...
well as the outer for loop iterates from student 1 to the last student,then for each student the inner loop will iterate for locker 1 to 10 now the two referred if statement are within an if statement that'll only work if the student of a particular number approaches that number locker.
now...
Mark_44 is right.you can't assign a single value to an array it's not a syntax.Also since you are checking a particular locker no. you should check that particular index of array i.e. lockers[j] instead of lockers as j loop is iterating for locker numbers.
.
if (lockers[j]== CLOSED){...