moni sharma
arry based problem
0 Answer(s)      6 years and 3 months ago
Posted in : Java Beginners

{modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.}

public class Insertion{

```public static void main(String a[]){
int i;
int array[]={17,12,3,6,4,19,200};

System.out.println("       Selection Sort\n\n");
System.out.println("Values Before the sort:\n");
for(i = 0; i < array.length; i++)

System.out.print( array[i]+"  ");
System.out.println();

insertion_srt(array, array.length);
System.out.print("Values after the sort:\n");
for(i = 0; i <array.length; i++)
System.out.print(array[i]+"  ");
System.out.println();

System.out.println("PAUSE");
```

}

```  public static void insertion_srt(int array[],int n){
for (int j = 0; j < n; j++){
int i = j-1;
int k = array[j];
while ((i>= 0) && (array[i] > k)){
array[i+1]=array[i];
i=i-1;
array[i+1]=k;
}}
}
```

}

arry based problem
arry based problem  how to put char type & int types variable in same array.and also what the procedure for giving input to those array at run time
arry based problem
arry based problem  how to put char type & int types variable in same array.and also what the procedure for giving input to those array at run time
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
arry based problem
arry based problem  {modify this proram in such a way so that it can take input int and char both .and also modify so that input can be given at run time.} public class Insertion{ public static void main(String a[]){ int i
Problem based on monitors
Problem based on monitors  A file is to be shared among different processes, each of which has a unique number. The file can be accessed simultaneously by several processes, subject to the following constraint: the sum of all
Array /string based problem....
Array /string based problem....  thanx to help me.but again a problem is here that it sorts single char as (a,b,c,n,m)but not the string .and also... solve this problem also as soon as possible..... import java.util.*; public class
string array based problem
string array based problem  R/sir, firstly thanks to help me so much. but now it can sort string very well but in case of integers... sorted value: 11 12 13 3 this is the problem here...... import java.util.*; public
array and string based problem
array and string based problem  this program is accepting only integers as input but i want to modify it such that it can accept both integers and char. import java.util.*; public class Insertion1 { public static void insertion
array and string based problem
array and string based problem  this program is accepting only integers as input but i want to modify it such that it can accept both integers and char. import java.util.*; public class Insertion1 { public static void insertion
array and string based problem
array and string based problem  this program is accepting only integers as input but i want to modify it such that it can accept both integers and char. import java.util.*; public class Insertion1 { public static void insertion
based on C#
based on the Criteria given below: a) When user will not enter Employee Name... discounts based on the following items. i. CRT monitors attract 10% discount... enter LCD, ask the user to enter the size. Based on the size entered by the user
alidation based on the xml in validation.xml.
alidation based on the xml in validation.xml.  How you will enable front-end validation based on the xml in validation.xml
Web based Project
Web based Project  Can anyone please help me by providing certain code for web based project relating to employee payroll system and attendance management
YUI Based Lightbox
YUI Based Lightbox       a YUI based image gallery script Read full Description
java based question
java based question  1,2,c,Z,A,5,2,1,A,C,D,Y,X,9,3,2 separate numbers and alphabets using collection and output will ascending order
problem on strings
problem on strings  in string1 "123456 ABC DEF...",IN string2 "raveen". iwant to add string2 after 123456 in the first string based on index number.i need logic for this with out using StringBuffer concept. Thanks in advanace
Based on struts Upload - Struts
Based on struts Upload  hi, i can upload the file in struts but i want the example how to delete uploaded file.Can you please give the code
Internet Based Application
Internet Based Application  Write an Internet based application in J2ME that parses and saves the HTML source. The application should do the following: Allow the user to enter a HTML URL into a TextField as part of a form (use
java based question
java based question  if there is a site and after user login on the right top there is a button of logout and i want to display firstname and lastname of the user after login then in what class i have to do changes?? and what
java program based on array
java program based on array  Create Student class with attributes - marks, name, gender, email with appropriate data types. Create another class StudentDemo which will have main method. Declare array of Student object with size
java program based on array
java program based on array  write a program to create an array of 10 integers in main.accept values from the user in that array .now again ask the use another nomber and pass the array and the no. entered to function called
component based technology - EJB
component based technology  main concept behind ejb  Hi Friend, Enterprise JavaBeans (EJBs) are used in distributed applications that contains the application's business logic and live business data. EJB addresses
Web-based system development
Web-based system development  I have a system written in java application.my lecturer asks me to do in web-base. what should i do?what should i have and what should i know? i have read that the best architecture is 3-tier
EJB based application
EJB based application  Project description The project has two separate parts, the client GUI application and the server application. The Client GUI This component must consist of a data capture screen that provides
Win-Ce Based platform - Java Beginners
Win-Ce Based platform  Hai, I am using Cre-Me 3.29 version which is win-ce java 1.3 based platform and run on B_PAD terminal . I am using java... 3.29 but still problem is there. Please give me suggestion. Thanks
Java Query(based on swing concept)
Java Query(based on swing concept)  I want a particular submit button to get disabled whenever i write some account number starting with 774 and 775 in a text box of that screen
Spring alternative to Form Based Login
Spring alternative to Form Based Login  print("code sample");how can we make a server to listen to login event i.e. Authenticate a user not using jsp... it by sending a web service call and not using any form based authentication
Web based workflow application example?
Web based workflow application example?  Hello there, Can anyone please send a sample project which is a web-based java workflow application? If it is built using Spring, Struts or JSF Framework it would be wonderful. If you
Tutorials