₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,065 members, 8,448,525 topics. Date: Monday, 20 July 2026 at 01:03 PM

Toggle theme

Csharpjava's Posts

Nairaland ForumCsharpjava's ProfileCsharpjava's Posts

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)

ProgrammingRe: Help On Java by csharpjava(m): 10:41am On May 02, 2011
Dolemite
How can I implement a remove passenger method in this code that searches for the passenger by name and removes the whole object of the passenger. . .
Try this method:

[s]public void RemovePassenger(ArrayList<Passengers> pass){
int index = pass.indexOf(name);
if (index != -1)
{
pass.remove(name);
}
else
{
System.out.println("passanger not in list"wink;
}

return;
} [/s]

Sorry these should be done with an Iterator
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 9:51pm On Apr 27, 2011
segsalerty

The project I'm working on at present needs to be kept secret for now, but later I will post the full code here, after the project has been completed.

Thanks for your help so far.
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 7:06am On Apr 27, 2011
segsalerty

From the row you have enabled above, I want only 5 Jbuttons including the one user has selected to be enabled.

Can this be done.
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 12:58pm On Apr 26, 2011
segsalerty

Can you then from the row you have enabled above, only keep 5 Jbuttons including the one the one the user has selected.

Or is this impossible to do?
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 10:33am On Apr 24, 2011
Fayimora
Correct me if am wrong but am sure this forum is not meant to teach you how to use a language but how to program efficiently. You wanna put four buttons in a row? Thats fine but do you even know how to create the button? No, the go back to the java tutorials and check it out.lol
People come here for help on coding and not for you to lecture them in programming, lectures should take place in a learning environment like in a class room or an online classroom.

So please try and give the right answer to the right person,  I mean if someone wants a piece of code let him have it and if you are not willing to do so please let others provide the code.

If someone has asked for a pseudo-code fine let him have the pseudo-code.

Please stop calling the shots here. After all you are free to start your own java forum and practice what you want and lets see if that forum will be popular.

This is not a forum for researchers it is for users, and if you have done Usability Engineering, you will know you are expected to build an information system that will provide the information that the users want.
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 10:12am On Apr 24, 2011
segsalerty

Thanks for the good work you are doing for people on this forum, please keep it up. I have found a way to get the Buttons the way I want them, but I will go through your code step by step and compare it with mine to see how you went about yours. Because of the nature of my project I cannot post my code yet, but, later I will come back and post the full code here for anyone that might want to build an application like mine.
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 12:38am On Apr 24, 2011
Fayimora

Can you be quiet, you don't have a clue of what I'm trying to do, you think this is childs play.
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 12:26am On Apr 24, 2011
If I understand what you are saying(i already have my code that works), when a button is clicked(all buttons are set to true at first) all other buttons apart from the buttons on the row that contains the clicked button is set to false. Isin't this what you want to do?? Can't see whats complex about it.
No! when a button is clicked all buttons are set to false, only the buttons in the row that was clicked should remain true.
Christianity EtcRe: Churhes That Collect Tithes And First Fruits Are All Thieves by csharpjava(m): 12:23am On Apr 24, 2011
Thank you poster this is very informative.
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 11:43pm On Apr 23, 2011
pseudo-code:
    loop through the whole multi-dimensional array
    check if the button you currently are on is one in the selected column
    if true then set false
This pseudo-code will not yield the desired result, try it for yourself, what I'm trying to archieve is very complex.
ProgrammingRe: Keeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 11:07am On Apr 23, 2011
Thank you for your help. Sorry I did not say the language should be in Java. Because of the sensitive nature of my work it won't be possible for me to post my code here. I have testing your code, what it does is to turn all the buttons in the selected row to false.

I want only the Buttons in the row selected to be enabled and all other Buttons in all the other rows changed to false. I think I'm getting close to finding the solution.

Thanks once again for contribution.
ProgrammingKeeping Only The Jbuttons In A Selected Row Active In A 2d Array by csharpjava(op): 4:23am On Apr 22, 2011
Hello everyone, I have a [12][15] array with Jbuttons. When a user clicks on any button in a row I would like only the buttons in that row to remain active and all other button to be set to false, so that the user cannot click any other JButton, in any other row, except the first one selected.

Please I need your contributions.
ProgrammingRe: Please Read by csharpjava(m): 11:45am On Apr 20, 2011
@ Poster
Whoever needs help should post related code or explain the problem properly. Then you get help(not code) this way you become a good programmer. Dont take this personal as its just a suggestion.
I disagree with you. With programming the best way to learn is to see the code with good explanation, and then they can develop themselves from there, a lot of people that ask for help here are trying to learn programming. Programming book and videos give you the whole code learning programming is not easy and you need to see the whole code to help you quickly learn.

Your suggestion is good for those who are already gurus in the area they know. Even if these guru want to learn a new language they need to see the whole code before they can master that new language.
ProgrammingRe: . by csharpjava(m): 10:57am On Apr 09, 2011
C++ is not approprate for web development.

Use either C#, VB.Net, Java servlets, Java Server Pages or PHP

You will find it easier to work with C#, VB.Net or PHP
ProgrammingRe: How To Become A Successful Programmer? by csharpjava(m): 11:54am On Apr 06, 2011
To Become A Successful Programmer you need to learn UML which will let you know how to create use cases and class diagrams, nowadays a high school boy can write wonderful codes. Knowing UML and coding is what makes you a good programmer today.

Free tutorial on UML
https://www.youtube.com/watch?v=RRXe1omEGWQ
ProgrammingRe: Help On Java by csharpjava(m): 3:29pm On Apr 01, 2011
I just hope my classmate dont get to know Nairaland
I will recommend that you tell all your classmates about Nairaland, the more people are knowledgeable the better it will be for our society.
ProgrammingRe: Vb.net security help! by csharpjava(m): 4:48pm On Mar 16, 2011
If you've done Java before, a module is like a class in Java or any other oo language. Yes you can reference a module from a text box in vd.net. If you are new to programming then a module or a class is a reusable code.
ProgrammingRe: Help! Vb.net Beginner by csharpjava(m): 9:01pm On Mar 05, 2011
ProgrammingRe: What Is The Most Sought After Programming Language? by csharpjava(m): 5:30pm On Feb 17, 2011
It depends on the purpose you want the language for. If you want to learn programming or just want to program for fun then I'll say Java, but if you want to work in the industry of the furture then you need to combine Java with a .Net language like C#.

Type Java on this website: http://www.indeed.com your see 26,317 jobs.

Type .Net on this website: http://www.indeed.com your see 41,850 jobs.

This goes to show that far more industries now use a .Net language like C# rather than Java.
ProgrammingRe: How Does A Rookie Java/j2ee Programmer Get A Job? by csharpjava(m): 6:37pm On Feb 16, 2011
If you are going to work in a company writing programs then you'll need to know how to write your code from a class diagram, this is an object oriented approach for software development. Follow the link below for video tutorials on UML which is used for modelling when using an object oriented method.


https://www.youtube.com/watch?v=RRXe1omEGWQ&feature=related
ProgrammingRe: Web Service Using Java Or C# by csharpjava(m): 6:19am On Feb 13, 2011
jubatus

I get pissed at all these apostles who are here defending what they don’t know. What contributions have they made to those languages they defend?
Many of us have not contributed to the making of TVs, Computers, cars, aeroplanes, cloths, shoes etc but we still use them and most people and countries use them to show off, this makes me more pissed off by your comment.

Businesses are here to make money, why should a business use Java and other open source software that will cause problems that there is little or no support for when there is an upgrade to their IT system. Open source software is good but is for those who have all the time in the world to write and debug codes and for hackers as well, but for businesses time is money!!!!

Programming uses a universal language and what makes a language better than the other is the market and the winner is the one users find easy to use. No disrespect to Java programmers but the truth is that C#, Visual Studio.Net and all the other .Net languages are the future of software development as it makes the life of programmers much easier compared to Java. I see Java fanatics now just like Novell network administrators some years back who were saying they hate Windows NT, but now where are they, nobody hears of Novell Networking anymore. What is Novell doing now they are supporting Microsoft C#, VB.Net and all the other .Net languages to run on any platform. The only disadvantage of .Net languages before was that they could only work on a windows platform but now with Mono they can run on any platform. I will only recommend Java to those who are just starting programming so that they can learn programming from the ground up.

Have a look at this link: https://www.dreamspark.com/default.aspx Microsoft have been giving out full versions of all their programming software to student of Universities and schools that sign up. So tell me what future is there for open source and Java.
ProgrammingRe: Nid U Guys Help by csharpjava(m): 7:46pm On Feb 12, 2011
Try this link to download free software for C# and VB.Net: https://www.dreamspark.com/Default.aspx

If your Uni is not listed you can get some other free Microsoft software from here: http://www.asp.net/downloads

And this for Learning C#, VB.Net and Visual Studio.net: http://msdn.microsoft.com/en-us/vstudio/cc136611
ProgrammingRe: Web Service Using Java Or C# by csharpjava(m): 8:30pm On Feb 10, 2011
webmonkey

webmonkey

Nice to know you are still open to using C# for the web service, I will recommend C# as the codes are very similar to Java. To start with you'll need to install a copy of visual studio 2003 or above, but from 2005 is better as it comes with it's own IIS. To create a web service after installation:

Click on File - New Project you will get a new window

From the new window above select - ASP.Net Web Service Application, give it the name and the location you want, click ok and you have created a web service.

In the code window begin to create your database connection and the WebMethod that will be consumed. I will go deeper into this if you are happy to use C#.

After the above compile the ASP.Net Web Service Application and you can now create the application that will consume the web service by creating a new web or windows application from the file menu.

From this web or windows application you have created above you just need to add the web reference which will be the address of the web service you have created above, then create the object that will use the web methods, compile and run your web or windows application and the application is ready for deployment on a windows server, to deploy it on any platform then you'll need Mono Sponsored by Novell visit this website for more details:
http://www.mono-project.com/Main_Page

Let me know if this is of interest to you, if it is then I can go into more details on creating the database connection and the web methods.
ProgrammingRe: Web Service Using Java Or C# by csharpjava(m): 6:36pm On Feb 10, 2011
webmonkey

Nice to know you are still open to using C# for the web service, I will recommend C# as the codes are very similar to Java. To start with you'll need to install a copy of visual studio 2003 or above, but from 2005 is better as it comes with it's own IIS. To create a web service after instalation:

Click on File - New Project you will get a new window

From the new window above select - ASP.Net Web Service Application, give it the name and the location you want, click ok and you have created a web service.

In the code window begin to create your database connection and the WebMethod that will be consumed. I will go deeper into this if you are happy to use C#.

After the above compile the ASP.Net Web Service Application and you can now create the application that will consume the web service by creating a new web or windows application from the file menu.

From this web or windows application you have created above you just need to add the web reference which will be the address of the web service you have created above, then create the object that will use the web methods, compile and run your web or windows application and the application is ready for deployment on a windows server, to deploy it on any platform the you'll need Mono visit this website for more details:
http://www.mono-project.com/Main_Page

Let me know if this is of interest to you, if it is then I can go into more details on creating the database connection and the web methods.
ProgrammingRe: Web Service Using Java Or C# by csharpjava(m):
@webmonkey

If you had gone with C# and the .net framework from when you started this thread you would have completed this project by now. Since you have started with Java, then you should try and finish it with Java but if you do get stock then I will suggest you do it with C# and the .net framework. Keep us posted on how you get on.
ProgrammingRe: Java Has Failed! by csharpjava(m):
@neutrall

Your mates few years ago were saying the same about Novell Network, now Novell Network has been consigned to history as it could not face the might of Windows Networking, same thing is happening to Java, I know some smart Java programmers that have moved over to C# and .net, those Java programmers still hanging on to Java are hanging on to a sinking ship.
ProgrammingRe: Java Has Failed! by csharpjava(m):
@SayoMarvel

We don't need to fight over this but the truth about this matter is that the market decides which language is the winner. If you take a look at the number of vacancies on this website: http://www.jobsite.co.uk here in the UK which is the best for job adverts, first type in Java, NetBeans and then type in c#, .net you will see that the damand for C# and the .net framework shows that the market is now in favour of C# and the .Net framework. Wake up bro the world of programing is changing.
ProgrammingRe: Difference B/w Visual Basic And C++ by csharpjava(m): 9:22pm On Feb 06, 2011
The main deference is that C++ is used to create programs that runs directly on a computer harware or other devices without an operation system, which is why it is used for writing operating systems and device drivers. Visual Basic on the other hand can only create programs that runs on an operating system like Windows XP.
WebmastersRe: Help Me With Css by csharpjava(m):
You should centre your main container like this:

div.container
{

width: 950px;
margin-left: auto;
margin-right: auto;

}
ProgrammingRe: Java Has Failed! by csharpjava(m): 1:02pm On Feb 04, 2011
For all you Java supporters out there who believe that Java is the only cross platform language I want you to know that C# or VB.Net is the future of programming, the only thing Java is good for now is for a new programmer that wants to learn programming from the ground up, once this knowledge has been gained the wise thing is to cross over quickly to C#. C# code is similar to Java but C# is more powerful as it is a combination of Java and C++ plus it allows for rapid application development when using Visual Studio 2003 and above. C# runs on the .net framework which is owned by Microsoft, the only set back with the .net framework in the past was that it only runs on a Microsoft platform, now Mono which is supported by Novell allows the .net framework to run on Unix, Linux, Mobile devices etc, you can find out more about mono here: http://www.mono-project.com/Main_Page

Some advantages of C# & .net over Java & JVM are:

1. Garbage collection this is built into the .net framework

2. Elimination of DLL hell - The .net framework allows two or more programmes with the same DLL name to be installed and run on the same computer.

3. Web Services - Creating and consuming this with C# or VB.Net in Visual Studio 2003 and above is very easy.

4. You can complete programming projects much more faster with C# or VB.Net than with Java.

5. You can use classes from other languages in your C# or VB.Net projects.


And the list goes on!
WebmastersRemoved by csharpjava(op):
.

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)