User Comments for the tutorial:

String Array In Java

Total comments: 22      View Tutorial    Discuss: String Array In Java



What is the role of String Array In Java?
class StringCharacter { static String[] roseindia={"chanan","tapan","Amar","santosh","deepak"}; public static void main(String args[]){ for(int i=0;i<5;i++){ System.out.println(roseindia[i]); } } } Output of program: C 

Java String Array example error
Hi Anand, Thanks for your comments. We have just tested the application and found the output in the following format: C:\>java StringCharacter chanan tapan Amar santosh deepak You are right the values in the array will be printed in the 

pls. ans.
how to declare an array? 

declare set of sentence as array
hi, how can i declare sentence "remove this" as array,then read array[0]=remove and array[1]=this  

Doubt in The Concept
Sir, Can U Give Me An Example on Dynamically Initalizing The Arrays i.e., By Reading Using 

how to insert and remove in/from string array?
how can ý add and remove an item into/from a string array? ý couldnt find this. the program is here. please help me. thanks by import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.Acti 

Help please...
how can i make a program that ask the user to input integers, then evaluate it and say whether the array is a series of two or more adjacent elements of the same value.... example: input : 1 1 2 2 3 output: 2 tnx... 

sir, how ican make a program that will output the ff; 1,2,4,8,16,32 

plus magic
hi..., how can i make a square magic, plus magic, and cross magic using array?? thnx... gud day..  

i want ur help please
hi my question is if we have agoup of students with their scores..we need to rank them in decreasing order of their score.the output should be the list of students (along with their scores )in that order. am watting for ur replay thank u 

array size
for(int i=0;i<5;i++).. What if the array size is not known initially? 

My comment
Wew!!! tnx 4 having dis program it help us to accomplish our assignments........ 

sample array... hello...
helo how can i input a code that the output is to look for the name of the presedent where there is a location and the number of the house using the array in java.. thank for sending the code more power.hehehheheheh 

helo can you send me a code that the output is when you enter a 5 numbers it will determine the highest and the lowest and it will ask the user on how many numbers did the user want to input and if the user want to try again it will apear their would 

if i have input like this 1: programing 10: java 2:language how can i sort them based on the integers in it  

can u plz explain that whu is the array declared as static and used before main() ?? we would get the same result if we wrote: class StringCharacter { public static void main(String args[]){ String[] roseindia={"chanan","tapan","Ama 

good explaination
that is a great website to show me what i want to know i hope this will be updated to be appreciated my demand. 

String array
i got ur code me satisfied 

I need help writing this code. write a program using the concepts of Java that we’ve seen thus far in class. Save your file (the file with the .java extension) in Project 2 dropbox in the eCompanion.1. Create a class called MyFirstVariables.2. In 

why we use string
using string we create a root wise tree 

sir, I need some document from your site, thanks vinay  

your java is very best in my life i must say you you are the one and only java progarmmer 

Related Tutorial and Articles