Click here to Skip to main content
15,924,402 members
Home / Discussions / Java
   

Java

 
AnswerRe: How to Delete/remove index elements in 2D arrayList Pin
Nagy Vilmos11-Apr-12 2:06
professionalNagy Vilmos11-Apr-12 2:06 
GeneralRe: How to Delete/remove index elements in 2D arrayList Pin
TorstenH.11-Apr-12 3:57
TorstenH.11-Apr-12 3:57 
GeneralRe: How to Delete/remove index elements in 2D arrayList Pin
Nagy Vilmos11-Apr-12 3:59
professionalNagy Vilmos11-Apr-12 3:59 
Questionjava SmS Application...... Pin
fahad479-Apr-12 19:59
fahad479-Apr-12 19:59 
AnswerRe: java SmS Application...... Pin
Anil Kumar 231-Jul-12 21:43
Anil Kumar 231-Jul-12 21:43 
QuestionSplitting one string Pin
Ejii8-Apr-12 21:27
Ejii8-Apr-12 21:27 
AnswerRe: Splitting one string Pin
Richard MacCutchan8-Apr-12 21:43
mveRichard MacCutchan8-Apr-12 21:43 
AnswerRe: Splitting one string Pin
Ejii8-Apr-12 22:27
Ejii8-Apr-12 22:27 
Java
class stringedit{
    public static void main(string[]args){
        String testString = "20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39";
        String finalString=""; // MAX 5 NUMBERS EACH LINE
        int testlength = testString.length();
        for (int i=0;i<testlength;i++){
            finalString = finalString+testString.substring(i,i+14)+"\n"
			i+=14;
        }// END FOR
    }// END MAIN
}//END STRINGEDIT


and problem solved and program working.
program is now asking for 20 numbers that gotta be in the range of 20 and 50. showInputDialog is popping up 20 times, if you enter one number outside the range it will not affect the program.
store each number in one array
print the numbers in one messagebox with 5 numbers on each line

all is now finally done =)
Questiononline shopping application in Java Pin
Member 87135148-Apr-12 20:30
Member 87135148-Apr-12 20:30 
AnswerRe: online shopping application in Java Pin
Richard MacCutchan8-Apr-12 21:41
mveRichard MacCutchan8-Apr-12 21:41 
AnswerRe: online shopping application in Java Pin
TorstenH.9-Apr-12 19:35
TorstenH.9-Apr-12 19:35 
Questionencryption technique Pin
AnkitGujjar7-Apr-12 18:53
AnkitGujjar7-Apr-12 18:53 
AnswerRe: encryption technique Pin
Richard MacCutchan8-Apr-12 6:06
mveRichard MacCutchan8-Apr-12 6:06 
Questionjava socket program that delete add tem files Pin
zahidaa6-Apr-12 9:42
zahidaa6-Apr-12 9:42 
AnswerRe: java socket program that delete add tem files Pin
Richard MacCutchan6-Apr-12 10:02
mveRichard MacCutchan6-Apr-12 10:02 
GeneralRe: java socket program that delete add tem files Pin
zahidaa7-Apr-12 5:44
zahidaa7-Apr-12 5:44 
GeneralRe: java socket program that delete add tem files Pin
Richard MacCutchan7-Apr-12 6:38
mveRichard MacCutchan7-Apr-12 6:38 
Questionformat and partition drive Pin
Jameson B5-Apr-12 18:11
Jameson B5-Apr-12 18:11 
AnswerRe: format and partition drive Pin
Richard MacCutchan5-Apr-12 22:35
mveRichard MacCutchan5-Apr-12 22:35 
QuestionMessage Closed Pin
30-Mar-12 16:20
winniliu30-Mar-12 16:20 
AnswerRe: recuirt JAVA Pin
Member 853753-Apr-12 2:41
Member 853753-Apr-12 2:41 
Questionlearning Pin
yemitolaade29-Mar-12 1:45
yemitolaade29-Mar-12 1:45 
AnswerRe: learning Pin
TorstenH.29-Mar-12 2:06
TorstenH.29-Mar-12 2:06 
AnswerRe: learning Pin
opeyems3-Apr-12 3:39
opeyems3-Apr-12 3:39 
Questionjava code for Genetic algorithm Pin
LukeWonders28-Mar-12 3:13
LukeWonders28-Mar-12 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.