• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Few Java Queries

 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i have few java queries.

1)write a java program to sort numbers without using sort method
1)selection sort 2)bubble sort

2)w a j p to search given number using 1)linearsearch 2)binary search

3)W a j p to print * like

*

* *

* * *


 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "Deepak A L"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your questions, they look like homework that you should be doing. Nobody here is going to do them for you, although people will try to help you. So: What ideas have you had so far on solving these?
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[ UD: We really don't like to do people's homework. ]
[ August 07, 2008: Message edited by: Ulf Dittmer ]
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
welcome to Java Ranch,

http://faq.javaranch.com/java/UseAMeaningfulSubjectLine

http://faq.javaranch.com/java/ShowSomeEffort

http://faq.javaranch.com/java/DoYourOwnHomework
 
sudipto shekhar
Ranch Hand
Posts: 823
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi deepak,

Welcome to the group.I would surely help you but let me ask you, are you new to JAVA or are you new to programming? If you are new to programming then i would suggest you to go through any book of 'C' language which will explain you the basics of looping,condition checking etc like "for" loop,do...while etc,use it in your program(expecting at least you know how to write a class,method, creating an instance of a class). I think this will surely help you.

With Regards,

S.Shekhar

 
Rob Spoor
Sheriff
Pie
Posts: 20514
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why haven't I moved this to the beginner's forum before?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic