Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
boolean
- Page 1
Re: Boolean Algebra
Programming
Software Development
13 Years Ago
by bloodbender
Boolean
algebra is a java question (not specifically java, most programming languages wouldn't you say?). I wouldn't put it under math even if there was a math section. Thanks for your help anyway.
boolean
Programming
Software Development
18 Years Ago
by THK
… private String FlightNumber; private String Location; private
boolean
isLanding; private int ScheduledTime; private static int …(){ return Plane.TotalPlanes; } [B][U]public
boolean
[/U][/B] i wrote this far and i …or take offs. something like [B]public
boolean
isLanding(Plane c) { return this.Plane.equals…
Re: boolean
Programming
Software Development
18 Years Ago
by cms271828
public
boolean
getIsLanding() { return isLanding; } I think thats what you want What I would do is change your non-static
boolean
field isLanding to: private
boolean
landing; Then use the method: public
boolean
isLanding() { return landing; } It conforms more to how java code is written using get/is.
boolean help!
Programming
Software Development
16 Years Ago
by peedi
… my program. And for some reason i cannot get my
boolean
to become true. here is the code [CODE]//This program… Pizza order = new Pizza (); String firstName; //user's first name
boolean
discount = false; //flag, true if user is eligible for discount…
boolean array
Programming
Software Development
12 Years Ago
by scarletfire
…to test it out:
boolean
[] test1 = { false, true, true, true} ;
boolean
[] test2 = { true} ;
boolean
[] test3 = { true…public class Bool {
boolean
presents = fullOfBool();
boolean
surprises = new
boolean
[presents]; public
boolean
fullOfBool(
boolean
[] p) { surprises =
boolean
[] p; for( int…
Re: boolean array
Programming
Software Development
12 Years Ago
by godzab
… your code is wrong is because: a) you say `
boolean
presents = fullOfBool();` , you can't do that becuase… fullOfBool does not return anything. b)`public
boolean
fullOfBool(parameters){...}`, this method does not return anything, so…, I forgot to add the location of the last
boolean
value. Here is the code: public class Bool {…
Boolean Algebra
Programming
Software Development
21 Years Ago
by Dani
…a very important programming concept is that of
boolean
algebra. A
boolean
expression is a true or false statement.… statements use a single equals such as = while
boolean
algebra uses the double equals ==. [b]Symbol Usage…discrete mathematics when first introduced to
boolean
algebra. [b]Branching[/b]
Boolean
algebra is used to create …
boolean 2d array how to check if true
Programming
8 Years Ago
by Roger_2
part of my program includes my
boolean
2d array: `
boolean
[][] matrix = new
boolean
[V][V];`i want to iterate through the vertex and … am getting error: cannot convert from
boolean
[] to
boolean
. casting `(
boolean
)` does not help. i have also tried `
boolean
[v][w] == true`. here is…
Re: Boolean class
Programming
Software Development
15 Years Ago
by KirkPatrick
…sridhar123;1039215]Public final static
Boolean
FALSE=new
Boolean
(false); Public final static
Boolean
TRUE=new
Boolean
(true); what is the … a true/false when the point of a
boolean
is to determine whether it is true or …false. For example: [code=java] private
boolean
isWindows; if (isWindows == true) // do something only …
boolean array start at 1
Programming
Software Development
15 Years Ago
by pirateninja1111
I'm wondering how to start a
Boolean
array at 1 instead of 0. so far the only thing i can think of is: [CODE]
Boolean
[] x = new
Boolean
[12]+ 1; or
Boolean
[] x= new
Boolean
[12 + 1]; [/CODE] and the top one does not compile while the bottom one just makes the length to 13
Boolean arrays with flight reservation system
Programming
Software Development
14 Years Ago
by alonewolf23
… static void main(String args[]) {
boolean
EconArray[] = new
boolean
[5]; //
boolean
array with 5 elements
boolean
FirstArray[] = new
boolean
[5]; Scanner input = new Scanner(System…
Boolean operators
Programming
Software Development
13 Years Ago
by cadence441
For some people it may be difficult to understand what
Boolean
is.Well, it's a type of algebra. … (reversed) will become 1. Now lets try out a complicated
Boolean
statement- !( [U](1 || 0)[/U] && 0 )…;& 0 = 0 !0 (reversed) = 1 Finally,why are
Boolean
operators used?Well,to make more complex conditional statements.Suppose…
Re: Boolean Algebra
Programming
Software Development
20 Years Ago
by 1o0oBhP
… tut but correct me if i am wrong... ...I thought
boolean
algebra was a collection of algebraic expressions about logic? ie…) = 0 and the like.... i found a doc here about
boolean
algebra which is going on about something completely different ?!?!??!? [url…
boolean array
Programming
Software Development
18 Years Ago
by Sailor_Jerry
How do i return a
boolean
array? i get an error stating that i can't cast from
boolean
[] to
boolean
. I have something like below. [code] method logic...
boolean
[] information = {true, false}; return information; // this line does not work. [/code] Thanks sj
Re: Boolean array?
Programming
Software Development
18 Years Ago
by thekashyap
… no clue what to do except [code]
boolean
[] deck = new
boolean
[52];[/code] can anyone give me any …] Where type could be a basic type (like int,
boolean
...) or a user defined type (like Poker) 2. … static void main( String[] args ) { //declare and define
boolean
arr[] = new
boolean
[10] ; //init for( int i = 0; i <…
Boolean class
Programming
Software Development
15 Years Ago
by sridhar123
Public final static
Boolean
FALSE=new
Boolean
(false); Public final static
Boolean
TRUE=new
Boolean
(true); what is the meaning of above two statements?
Re: Boolean class
Programming
Software Development
15 Years Ago
by JamesCherrill
… by convention). These constants are members of the
Boolean
class, with values true and false respectively. Back…the compiler would not convert automatically between
Boolean
(the class) members and
boolean
(primitive) values, so it was useful… Now Java will autobox true and false into
Boolean
class members automatically this is no longer of …
Boolean Combinations
Programming
Software Development
15 Years Ago
by Stevoni
… the placeholders I'll be using to replace with the
boolean
operation in the project. The listbox will be associated with… 1
boolean
value in a
boolean
array. As it's looping through the array… listbox, just how to get all the combinations of the
boolean
array. Thanks in advance!
Boolean Methods HELPPP
Programming
Software Development
14 Years Ago
by rinjin07
… EXTREMELY grateful if someone can help me out with some
boolean
method stuff. I have this assignment where we've been… the moment I've been asked to put in a
boolean
method called inBalance that returns true if the balance is…
Boolean's Double Troubles
Programming
Web Development
8 Years Ago
by UI
… embedded in its name when it is used in a
Boolean
context.** $true_num = 3 + 0.14159; $true_str = &… following properties − It evaluates to FALSE in a
Boolean
context. It returns FALSE when tested with IsSet() … trouble understand **"It evaluates to FALSE in a
Boolean
context"** for reasons mentioned just above. :confused:…
Re: Boolean's Double Troubles
Programming
Web Development
8 Years Ago
by UI
… {echo "FALSE";} But is the above a valid
boolean
? If so, then why should we not use doubles as… ? https://www.tutorialspoint.com/php/php_variable_types.htm Look at the
Boolean
section. It says not to use double as…
Re: boolean array
Programming
Software Development
18 Years Ago
by Sailor_Jerry
Forgot to update the method definition from
boolean
to
boolean
[]
Boolean array?
Programming
Software Development
18 Years Ago
by roketto
… more than once. I'm now trying to use a
boolean
array of size 52, with each card initialized to false… really have no clue what to do except [code]
boolean
[] deck = new
boolean
[52];[/code] can anyone give me any insight..? I…
Re: Boolean class
Programming
Software Development
15 Years Ago
by Ezzaral
Your example is only a case of poor variable naming. Why would you name a
boolean
"state"? What would "state equals true" mean in a logical description of the program flow? If it is truly a
boolean
state then you can easily assign a name that accurately reflects that binary nature.
Re: Boolean Combinations
Programming
Software Development
15 Years Ago
by Stevoni
[QUOTE=ChrisPadgham;1100716]with 9
boolean
variables that is 512 combinations [/quote] Thanks for the help! … need the code to take in the [i]n[/i]
boolean
options and loop through and tell me what all the…
Re: Boolean Methods HELPPP
Programming
Software Development
14 Years Ago
by vasu d
Well, the compiler complains because you have not accounted for all the cases in your
boolean
functions. your functions look like: public
boolean
first() { if(something) { return anotherthing } } what if the condition fails ?. How will the compiler know what to do if the balance <=0 . You must account for the else case as well.
Re: Boolean Methods HELPPP
Programming
Software Development
14 Years Ago
by rinjin07
… accounted for all the cases in your
boolean
functions. your functions look like: public
boolean
first() { if(something) { return anotherthing } } what if…
Re: boolean array problem
Programming
Software Development
14 Years Ago
by ibn_sumal
… correspond to the index of the array e.g
boolean
voucher = new
boolean
[11]; ok jon here it is: 1)we start… we get a random number between 1-5 from our
boolean
array 4)else if user chooses 2 then we get… a random number between 6-10 from our
boolean
array 5)once a number has been given to a…
Re: boolean array problem
Programming
Software Development
14 Years Ago
by ibn_sumal
… the problem i have is with the
boolean
array, let's call it
boolean
seat[] = new
boolean
[11] //there's 10 seats but… be used once. once the seat has been chosen the
boolean
array = true. e.g - seat[5] = false //it has not…
Re: boolean array problem
Programming
Software Development
14 Years Ago
by jon.kiparsky
… want to do that, instead i want to use the
boolean
array. [/QUOTE] And that's where you lose me. What…? What do you want to do with the
boolean
array? All the
boolean
array can do is keep track of eleven values…. I know what [B]I'd[/B] do with the
boolean
array here, but you have to figure out what [B…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC