Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
void
- Page 1
Null Pointer Exception in Java Application – Need Fixing
Programming
Software Development
1 Month Ago
by YashSmith
…. Here's the problematic code: public class Test { public static
void
main(String[] args) { String text = null; System.out.println(text…
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by toneewa
…msclr/marshal_cppstd.h> namespace MR_MNamespace {
void
DisplayComputerName(); } Created mr_m.cpp: #include … System; using namespace MR_MNamespace; namespace MR_MNamespace {
void
DisplayComputerName() { wchar_t ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; …
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by toneewa
…;System.Drawing.dll> #include "mr_m.h" [STAThread]
void
Main() { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); Application::Run(gcnew Mr_M…
Re: Void
Programming
Software Development
9 Years Ago
by 21310051
Void
in java means that no value will be returned. If your method is of type int, that method will return an integer value... if your method is of type string, that method will return a string value... but a
void
method will return nothing.
Re: Void Function
Programming
Software Development
12 Years Ago
by deceptikon
… a function without return type.... `
void
` *is* the return type. You just can't do much … to add, it is not considered good programming to write
void
functions That's not true at all. Please don't… returning a status code for the sake of not returning
void
is the opposite of a good practice.
Re: void functions 2
Programming
Software Development
20 Years Ago
by Narue
…, you [b]must[/b] name each of the parameters: [code]
void
printAttitude ( int [B]name[/B] ) { [/code] >if (int == 1…
Re: Void Function
Programming
Software Development
12 Years Ago
by vikas221
void
permit a function without return type....
Re: Void
Programming
Software Development
9 Years Ago
by Orieba Hedwig
…consider the method definition of move below: public
void
move(
void
) - The first
void
tells us that move doesnt bring out any… data(technically returns nothing). The second
void
says move does not take in any data(accepts …no inputs).This statement is the same as public
void
move(). Remember whenever a method returns a value,this…
Void
Programming
Software Development
17 Years Ago
by nurulshidanoni
… #include < fstream > using namespace std;
void
SelectionSort ( int *y , int n )//selection sort function…[ i ] = y [ minat ]; //swap y [ minat ] = temp; } }
void
printElements ( int *y , int x, int n ) //print array elements…quot; << y << endl; }
void
main() { int x, y; ifstream inFile("jes…
Re: Void
Programming
Software Development
9 Years Ago
by stultuske
21310051: Java is very case sensitive:
void
and
Void
are not the same. We can't really provide a complete and correct answer until the OP states whether he meant
void
or
Void
Re: Void
Programming
Software Development
9 Years Ago
by syncster31
Well that's a point stultuske but the poster says what's the meaning of
void
in java, meaning its already inside java and since '
Void
' could be a class which is still needed to be created, one must assume that the poster means '
void
' and not '
Void
'.
Re: Void
Programming
Software Development
17 Years Ago
by nurulshidanoni
Dear Ancient Dragon, so, I must declare like this? [code=C++]
void
main () { int y[]={20,30,25}; int x ; [/code]
Re: Void
Programming
Software Development
17 Years Ago
by nurulshidanoni
… 20 1 20 Press any key to continue [code=C++]
void
main () { const int max = 4; int x,y, in; int…
Re: Void
Programming
Software Development
9 Years Ago
by JamesCherrill
… normally specify the return type, you use the keyword "
void
" to show that there is no return value, eg…
Re: Void
Programming
Software Development
9 Years Ago
by stultuske
Or, if you meant the reference type
Void
, [this](http://stackoverflow.com/questions/643906/uses-for-the-java-
void
-reference-type) might be a good read.
Re: Void
Programming
Software Development
9 Years Ago
by JamesCherrill
"Java" includes the API, and the standard API includes a class `
Void
` It's no different from "class" vs "Class" https://docs.oracle.com/javase/8/docs/api/java/lang/
Void
.html
Re: Void
Programming
Software Development
9 Years Ago
by JamesCherrill
More formally: public
void
move(
void
) is not a valid Java method signature, so all this post adds to the previous answers is a mistake.
Void
Programming
Software Development
9 Years Ago
by Parvathiapril8
can anyone explain the meaning of
Void
in java..even though i referred many books,not able to understand clear as i am a learner..
Re: Void
Programming
Software Development
9 Years Ago
by syncster31
…;). You then create a method that sets that value public
void
setName(String str){ name = str; } The above code woudn't…
Void functions
Programming
Software Development
15 Years Ago
by Naloth
… double gpa; };
void
displayMenu ();
void
printArray (StudentRecord s[], int n);
void
ascend (StudentRecord s[], int n);
void
descend (StudentRecord s[], … again!" << endl << endl; } } }
void
displayMenu () { cout << " ***********************************************************" << …
Void Methods HELP!!!!
Programming
Software Development
14 Years Ago
by anumash
…-nickel)*5); return pennies; } } public class Ch4q1{ public static
void
main(String[] args) {CashRegister register = new CashRegister(); register.recordPurchase();…-nickel)*5); return pennies; } } public class Ch4q2{ public static
void
main(String[] args) {CashRegister register = new CashRegister(); register.recordPurchase();…
void is an invalid type for the variable actionperformed
Programming
Software Development
10 Years Ago
by janetheath
… rdbtnNewRadioButton_1.addActionListener(new ActionListener() { public
void
actionPerformed(ActionEvent arg0) { } }); rdbtnNewRadioButton_1… rdbtnNewRadioButton_2.addActionListener(new ActionListener() { public
void
actionPerformed(ActionEvent arg0) { } }); rdbtnNewRadioButton_2…
Void Functions
Programming
Software Development
15 Years Ago
by ASFtlink
… //or loss minuLosses++; minuTotal++; } //multiplication win or loss
void
multiGame(const int intResult, const int answer, int & multWins… winning diviWins++; else //or loss diviLosses++; diviTotal++; } //show stats
void
statsShow(const int plusWins, const int plusLosses, const int plusTotal…
void functions
Programming
Software Development
15 Years Ago
by PTRMAN1
…float miles = 0; float gallons = 0; float milesPerGallon = 0;
void
GetMnG (); cout << fixed << showpoint; cout &… << milesPerGallon << endl; return 0; } //*****************************************************
void
GetMnG () { // Precondition: This function requires two real number inputs, …
void *arry
Programming
Software Development
14 Years Ago
by dashure
… #include <string.h>
void
* scrambleArr(
void
* arr, int numElem, int elemSize,int (*func)(
void
*)); int func(
void
*x);
void
main( ) { int a[7… *p=index[0]; return p; }
void
*scrambleArr(
void
*arr, int numElem, int elemSize,int (*func)(
void
*)) {
void
* newArr = (
void
*) malloc(elemSize * numElem); unsigned char* …
Re: Void** Array - Implement With Strings - Problem
Programming
Software Development
18 Years Ago
by YoTaMiX
…(int);
void
Enqueue(
void
* Element,q_ptr Q);
void
Dequeue(q_ptr Q);
void
GetSize(q_ptr Q);
void
ShowQ_Str(q_ptr Q);
void
main() …0; new_q->full_size=limit_size; return new_q; }
void
Enqueue(
void
* Element,q_ptr Q) { int i; if ( …Q->first==0) ) { Q->place=(
void
**)malloc(sizeof(
void
*)); if (Q->place==NULL) { printf("…
void pointers
Programming
Software Development
18 Years Ago
by rowly
…]int[/COLOR][COLOR=#000000] current;[/COLOR] [COLOR=#0000ff]
void
[/COLOR][COLOR=#000000] *layer[100]; [/COLOR] [COLOR…public[/COLOR][COLOR=#000000]: [/COLOR] stack([COLOR=#0000ff]
void
[/COLOR]) { top=0; [COLOR=#008000]//dont worry…0000ff]int[/COLOR][COLOR=#000000] push([/COLOR][COLOR=#0000ff]
void
[/COLOR][COLOR=#000000] *myobject) [/COLOR][COLOR=#008000…
Re: void pointers
Programming
Software Development
18 Years Ago
by rowly
…[/COLOR][COLOR=#000000] current;[/COLOR] [COLOR=#0000ff]
void
[/COLOR][COLOR=#000000] *layer[100]; [/COLOR] …]public[/COLOR][COLOR=#000000]: [/COLOR] stack([COLOR=#0000ff]
void
[/COLOR]) { top=0;[COLOR=#008000] [/COLOR]current…=#0000ff]int[/COLOR][COLOR=#000000] push([/COLOR][COLOR=#0000ff]
void
[/COLOR][COLOR=#000000] *myobject) [/COLOR][COLOR=#008000] …
Void Array Sorting/Swapping
Programming
Software Development
16 Years Ago
by Hedelerden
…// Number of elements int elementSize, // Size of each element
void
* array, // Pointer to an array int ascending, //…(arrayLength -1); j=j+1) {
void
*arrayItem = (
void
*)((char*)array + j*elementSize );
void
*arrayMove = (
void
*)((char*)array + (j+1)*elementSize );…
Re: Void Methods HELP!!!!
Programming
Software Development
14 Years Ago
by ztini
The issue you are having has nothing to do with whether your methods return
void
or not. The issue is integer division. 4 / 3 = 1 int / int = int (the .333333 is clipped) 4 / 3.0 = 1.33333 int / double = double 4.0 / 3 = 1.33333 double / int = double 4.0 / 3.0 = 1.33333 double / double = double
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