• Post Reply Bookmark Topic Watch Topic
  • New Topic

CodingBat to NetBeans?  RSS feed

 
Chase Harris
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, guys! I've been working on CodingBat for a while, but, seeing as you don't get to work the WHOLE problem, I wanted to try it on NetBeans.

I got my answer for a problem right (on CodingBat), but I just don't know how to convert it to work in NetBeans. I know I need to put something in public static void main (to show the array after being sorted), but I don't have a clue, since I never had to do it on CodingBat. Can someone please help me out? Thanks. Here's my coding from CodingBat:
It's supposed to group the zeroes to the front of an array, which it does on CodingBat.
 
Les Morgan
Rancher
Posts: 779
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would just go into NetBeans and create a new project, then do a copy of that source, then paste it into the NetBeans project. All you have there is one method, you need the class structure around it to make anything happen.
 
Chase Harris
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Les Morgan wrote:I would just go into NetBeans and create a new project, then do a copy of that source, then paste it into the NetBeans project. All you have there is one method, you need the class structure around it to make anything happen.



Done! Now I just need to give me an output.
 
Les Morgan
Rancher
Posts: 779
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just need to make the appropriate call from the main method to your zeroFront method ;)
Chase Harris wrote:
Done! Now I just need to give me an output.
 
Les Morgan
Rancher
Posts: 779
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!