Ganesh Patekar

+ Follow
since Jun 24, 2015
Ganesh likes ...
Hibernate jQuery Spring MySQL Database Tomcat Server Java
Forum Moderator
Ganesh Patekar currently moderates these forums:
This soul began to dwell in this body named Ganesh Patekar since 31/07/1987 in Solapur, Maharashtra, India.
Being youngest child in the family had happy childhood but I was also an obstinate kid As days go by I became more amiable.
I had persuaded Bachelors of computer application( BCA, Batch 2007-10 ) from Sinhgad College of Science, Pune. I’m so greedy about learning so couldn’t stop there so persuaded Master of computer application ( MCA ) from Sinhgad Institute of Management, Pune. I used to act as emcee and compare in college events. Those were the best days of life.
I really adore to learn new things. I always eager to write a beautiful code I enjoy visiting natural places near by Pune on weekends.
I’m passionate about maintaining good physic so I do yoga, pranayama and workout regularly because I think, health is wealth.
Pune, Maharashtra, India.
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads

Recent posts by Ganesh Patekar

Congratulations Jeanne !!  

Blog explains how study guides comparatively reduces the work of certification aspirants.
To be eligible for the drawing please create a separate topic here ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING. Questions in this thread aren't eligible for drawing.
Welcome to CodeRanch all of you

and congratulations for new arrival.
Welcome to CodeRanch and congratulations for new book.

Carey Brown wrote:... If they say two int's then leading zero's don't exist. If they say two Strings representing a number then it may or may not allow leading zeros...

Ahh I see, agreed.  
1 year ago

Ganesh Patekar wrote:... you better use String....

Sorry, StringBuilder would be good than String since String is immutable.
1 year ago

wayne brandon wrote:how could i compare if there is the same number in each, like the 2?

I guess you mean to say, how to compare two numbers to find out same digits present in those two numbers. For example num1 = 1028 and num2 = 2205 Output: 0 2

In that case first you need to separate each digits of num1 to compare with every digits of num2. I think you better use String rather than int type for numbers since number such as 0235 will create problem while separating digits using % and / operators.

See String for charAt(..) and other String methods which might help.
1 year ago
and welcome to CodeRanch !
1 year ago
One of the rules of method overriding is: The access modifier of an overriding method must provide at least as much access as the overridden method ( default method of interface ).

Implicitly the access modifier of default method is public but in MultiInt class overriding method int doStuff() has package-private access modifier which is weaker or lesser accessible than public hence the compilation error.
Please always QuoteYourSources  ( name of the book with author(s) name or website URL ) to avoid copyright infringement.
@ BG that's fine, it happens with everyone  
1 year ago

Brecht Geeraerts wrote:....

I guess you meant i--  rather than i++ at for update.

Why do you think you need to String variables? You don't need two String variables, only one is enough.

I think you don't need to declare String variables as static unless there is a valid reason it be static, either declare it as an instance ( non-static ) variable may be with private modifier? then you can initialize it using constructor or you can declare and initialise String variable as local variable in main method.
1 year ago