Click here to Skip to main content
15,887,849 members
Home / Discussions / Java
   

Java

 
Questionhow to apply horizental scroll bar in jsf Pin
sunil khichar11-Apr-14 7:26
sunil khichar11-Apr-14 7:26 
AnswerRe: how to apply horizental scroll bar in jsf Pin
Richard MacCutchan11-Apr-14 7:45
mveRichard MacCutchan11-Apr-14 7:45 
QuestionString Reverse Pin
V$ethi5-Apr-14 3:27
V$ethi5-Apr-14 3:27 
AnswerRe: String Reverse Pin
Richard MacCutchan5-Apr-14 3:47
mveRichard MacCutchan5-Apr-14 3:47 
GeneralRe: String Reverse Pin
V$ethi5-Apr-14 6:24
V$ethi5-Apr-14 6:24 
GeneralRe: String Reverse Pin
Richard MacCutchan5-Apr-14 6:47
mveRichard MacCutchan5-Apr-14 6:47 
GeneralRe: String Reverse Pin
V$ethi5-Apr-14 8:21
V$ethi5-Apr-14 8:21 
GeneralRe: String Reverse Pin
Richard MacCutchan5-Apr-14 21:29
mveRichard MacCutchan5-Apr-14 21:29 
As I suggested earlier, it can be simplified considerably by using the Scanner class, as in the following sample. If you do not wish to use the scanner, then you could write your own class that splits a string into a collection of tokens.
Java
public static void main(String[] args) throws Exception {
    Scanner sc = new Scanner("Cotta and Balbus love the sweet voices of the girls");
    while (sc.hasNext())
    {
        String nextWord = sc.next();
        char c;
        for (int i = nextWord.length() - 1; i > -1; --i)
        {
            c = nextWord.charAt(i);
            System.out.print(c);
        }
        System.out.print(" ");
    }
    System.out.println(".");
}

GeneralRe: String Reverse Pin
Richard MacCutchan5-Apr-14 6:49
mveRichard MacCutchan5-Apr-14 6:49 
AnswerRe: String Reverse Pin
vipul57413-Jun-14 3:08
vipul57413-Jun-14 3:08 
Questionjava code i need Pin
Member 107262375-Apr-14 1:33
Member 107262375-Apr-14 1:33 
AnswerRe: java code i need Pin
Member 107262375-Apr-14 1:45
Member 107262375-Apr-14 1:45 
GeneralRe: java code i need Pin
Richard MacCutchan5-Apr-14 1:48
mveRichard MacCutchan5-Apr-14 1:48 
Questionget a certain String from .txt file Pin
mtouxx3-Apr-14 21:11
mtouxx3-Apr-14 21:11 
AnswerRe: get a certain String from .txt file Pin
Richard MacCutchan3-Apr-14 22:12
mveRichard MacCutchan3-Apr-14 22:12 
GeneralRe: get a certain String from .txt file Pin
mtouxx15-Apr-14 8:24
mtouxx15-Apr-14 8:24 
GeneralRe: get a certain String from .txt file Pin
Richard MacCutchan15-Apr-14 10:03
mveRichard MacCutchan15-Apr-14 10:03 
GeneralRe: get a certain String from .txt file Pin
mtouxx15-Apr-14 20:05
mtouxx15-Apr-14 20:05 
GeneralRe: get a certain String from .txt file Pin
Richard MacCutchan15-Apr-14 22:18
mveRichard MacCutchan15-Apr-14 22:18 
GeneralRe: get a certain String from .txt file Pin
mtouxx15-Apr-14 22:51
mtouxx15-Apr-14 22:51 
GeneralRe: get a certain String from .txt file Pin
mtouxx15-Apr-14 22:52
mtouxx15-Apr-14 22:52 
GeneralRe: get a certain String from .txt file Pin
Richard MacCutchan15-Apr-14 23:31
mveRichard MacCutchan15-Apr-14 23:31 
GeneralRe: get a certain String from .txt file Pin
mtouxx15-Apr-14 23:44
mtouxx15-Apr-14 23:44 
Questionport scanner Pin
aghori31-Mar-14 22:17
aghori31-Mar-14 22:17 
AnswerRe: port scanner Pin
Richard MacCutchan31-Mar-14 23:33
mveRichard MacCutchan31-Mar-14 23:33 

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.