i am using only a driver and not a server. I know how to do selection sort for ints but can't figure out how to do it for Strings. I want to sort it my first letter only Here is my code that i started:
private static void selectionSort(S tring [] a)
{
String [] array = a;
int min, temp;
for (int index = 0; index < a.length - 1; index++)
{
...
User Profile
Collapse
-
How to use String methods
I have a driver and server and i can't figure out how to print the # of characters for each input they enter
I need help on figuring out how to alphabetize the user inputs
Someone plz help me
thanks
THIS IS SERVER.
import java.util.Scann er;
public class AlphabetizePara puzha {
static Scanner reader = new Scanner (System.in);
private String [] names = new... -
explaination on polymorphism
i need help on understanding super class, keyword extend and implements, and how to write code using interface and subclasses?
thank you -
How to import a sound to a java program
i trying to import a song that i already saved to my program
does anybody know how do that? I tried but i need help on starting the program and importing the song -
never mind i figured it out... -
So when i put data in my array when i choose option 1, how can i access that data and print it out. I didn't get your explanation....Leave a comment:
-
help on array searching
I am try to make the user enter name and password then ask them if they want to search. The menu has the options and i am having trouble with the search method. Here's my server:
[CODE=java]import java.util.Scann er;
public class StudentPassword {
static Scanner reader = new Scanner (System.in);
private int option;//the user option
private int count = 0;//the count
private String... -
[CODE=Java]
Scanner reader = new Scanner (System.in);
String [] names = new String [10];
int count = 0;
while(count < names.length){
System.out.prin t("Enter your name: ");
String name = reader.nextLine ();
names[count] = name;
count++;
}//close while
System.out.prin t("\nHere are the...Leave a comment:
-
Help with array
it says i have a negative value after my progam finishes...Leave a comment:
-
Help with String array program
I am try to make the user enter 10 names and then display them out in
reverse order. I am having trouble with my for statement. can someone help me. Thanks
[CODE=java] Scanner reader = new Scanner (System.in);
String [] names = new String [10];
int count = 0;
while(count < names.length){
System.out.prin t("Enter your name: ");
String... -
i am in a java class and i don't want to take notes
i use Jcreator and it would be easier that way
so can u help me in any?
thanks...Leave a comment:
-
How to print screen shots
i need help on trying to print screen shots and put them on powerpoint with a timer. I tried to used the robot package and i couldn't get it to work. Can someone help me get started on this program.
Thank you -
-
How to Make GUI's
i just started learning java and want to learn how to make GUI's with a client and server. -
yea i just need to make a user enter a balance and then make them withdraw or depoist
if they over withdraw the balance, how do i ask them to insert a smaller numer?...Leave a comment:
-
Help on tripatches
What are tripatches?
i am seeing if i can do one on my program
i have to make a user enter a balance and then make them withdraw or depoist
if they over withdraw the balance, how do i ask them to insert a smaller numer?
thanks
No activity results to display
Show More
Leave a comment: