Click here to Skip to main content
15,917,061 members
Home / Discussions / Java
   

Java

 
AnswerRe: move() graphics Pin
fly90428-Apr-09 11:37
fly90428-Apr-09 11:37 
Questionsaving files with current date and time as their names Pin
nicks1128528-Apr-09 2:01
nicks1128528-Apr-09 2:01 
AnswerRe: saving files with current date and time as their names Pin
Jimmanuel28-Apr-09 3:09
Jimmanuel28-Apr-09 3:09 
Questionsending an e-mail Pin
prasadbuddhika26-Apr-09 20:25
prasadbuddhika26-Apr-09 20:25 
AnswerRe: sending an e-mail Pin
Gil Messerman27-Apr-09 6:03
Gil Messerman27-Apr-09 6:03 
GeneralRe: sending an e-mail Pin
shrims4u17-May-09 6:48
shrims4u17-May-09 6:48 
Questionjava recursion problem Pin
harshad bhatia26-Apr-09 2:13
harshad bhatia26-Apr-09 2:13 
AnswerRe: java recursion problem Pin
CPallini26-Apr-09 23:26
mveCPallini26-Apr-09 23:26 
Please, check carefully the code, I'm a bit rusty with Java...

public class Main {
  static String []_keys= {"abc", "def", "ghi", "jkl","mno","pqrs","tuv","wxyz"};
  static char [] _out;
  public Main() {
   
  }
  
  static private void comb(int [] iKeys, int iIndex)
  {
    int i;
    int iKey = iKeys[iIndex]-1;
    for (i=0; i<_keys[iKey].length(); i++)
    {
      _out[iIndex] = _keys[iKey].charAt(i);
      if ( iIndex == iKeys.length-1)
      {
        System.out.println(_out);
      }
      else
      {
        comb(iKeys, iIndex+1);
      }
    }
  }

  public static void main(String[] args) {
    _out = new char[100];
    int [] iKeys = {1,2,3};// input, i.e. keys "123" in this example
    comb(iKeys, 0);
  } 
}


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: java recursion problem Pin
harshad bhatia27-Apr-09 0:22
harshad bhatia27-Apr-09 0:22 
GeneralRe: java recursion problem Pin
CPallini27-Apr-09 0:39
mveCPallini27-Apr-09 0:39 
GeneralRe: java recursion problem Pin
harshad bhatia27-Apr-09 0:51
harshad bhatia27-Apr-09 0:51 
QuestionRe: java recursion problem Pin
CPallini27-Apr-09 0:57
mveCPallini27-Apr-09 0:57 
AnswerRe: java recursion problem Pin
harshad bhatia27-Apr-09 1:08
harshad bhatia27-Apr-09 1:08 
GeneralRe: java recursion problem Pin
harshad bhatia27-Apr-09 1:14
harshad bhatia27-Apr-09 1:14 
QuestionI am new in Java Programming please help me. Pin
WebMaster25-Apr-09 11:13
WebMaster25-Apr-09 11:13 
AnswerRe: I am new in Java Programming please help me. Pin
fly90425-Apr-09 11:25
fly90425-Apr-09 11:25 
AnswerRe: I am new in Java Programming please help me. Pin
CPallini26-Apr-09 23:28
mveCPallini26-Apr-09 23:28 
Questionhow to use JAXRPC Pin
prakash_chhipa24-Apr-09 23:34
prakash_chhipa24-Apr-09 23:34 
Generaljava applet in tower of hanoi Pin
Hohepa Hori24-Apr-09 21:17
Hohepa Hori24-Apr-09 21:17 
GeneralRe: java applet in tower of hanoi Pin
CPallini26-Apr-09 23:30
mveCPallini26-Apr-09 23:30 
QuestionRational Application Developer (RAD) and Java Faces really seems to suck! Pin
Ray Cassick24-Apr-09 10:51
Ray Cassick24-Apr-09 10:51 
Questionhelp me Pin
tidelgl24-Apr-09 7:07
tidelgl24-Apr-09 7:07 
QuestionComparable Pin
jonig1923-Apr-09 18:21
jonig1923-Apr-09 18:21 
AnswerRe: Comparable Pin
Cedric Moonen23-Apr-09 21:15
Cedric Moonen23-Apr-09 21:15 
QuestionHow To get frame in video Pin
Flying_Doc23-Apr-09 6:17
Flying_Doc23-Apr-09 6:17 

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.