Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2388 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  manipulation des String

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

manipulation des String

n°1170892
karim86
Posté le 05-08-2005 à 17:25:34  profilanswer
 

salut,  
 
qlq1 peut m'aider pour transormer ce code PL/SQL en un code JAVA
 
en fait le but est de retourner les caracteres des codes ASCII d'un String.
 
merci
 
 
FOR i IN 1..length(RTRIM(i_Signature))
      LOOP
            v_Signature :=RTRIM(v_Signature)|| CHR(ASCII(SUBSTR(i_Signature, i,1))/2);
       
 
      END LOOP;

mood
Publicité
Posté le 05-08-2005 à 17:25:34  profilanswer
 

n°1170895
Taz
bisounours-codeur
Posté le 05-08-2005 à 17:27:14  profilanswer
 

javadoc

n°1170898
karim86
Posté le 05-08-2005 à 17:32:15  profilanswer
 


 
merci pour ton conseil, mais le pb c'est que je suis a la bourt et je fais d'autrs devloppement en parallele.
 
c'est tres URGENT

n°1170905
sircam
I Like Trains
Posté le 05-08-2005 à 17:37:41  profilanswer
 

Pas valable comme excuse, même un vendredi.
 
http://img256.imageshack.us/img256/3571/pingouinodisque1hk.gif%20


---------------
Now Playing: {SYNTAX ERROR AT LINE 1210}
n°1170941
Taz
bisounours-codeur
Posté le 05-08-2005 à 18:34:47  profilanswer
 

karim86 a écrit :


c'est tres URGENT que tu apprennes le java


n°1170952
masklinn
í dag viðrar vel til loftárása
Posté le 05-08-2005 à 18:44:25  profilanswer
 

karim86 a écrit :

merci pour ton conseil, mais le pb c'est que je suis a la bourt et je fais d'autrs devloppement en parallele.
 
c'est tres URGENT


Le monsieur te dit que c'est trivial, que c'est ton boulot et qu'il n'y a strictement aucun travail de réflexion qui soit impliqué.
 
Au mieux, le forum est ici pour aider les gens à réfléchir, quand le seul travail requis est d'aller lire la doc on peut rien pour toi, aides-toi et le ciel t'aidera [:spamafote]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1171111
the real m​oins moins
Posté le 05-08-2005 à 22:30:24  profilanswer
 

bof, chopper le code ascii d'un caractere c'est pas *si* trivial que ça. con, oui, mais trivial, bah, nan.
d'ailleurs chuis même sur à 100% de pouvoir le faire les yeux fermer sans vérifier mon truc

n°1171119
masklinn
í dag viðrar vel til loftárása
Posté le 05-08-2005 à 22:44:34  profilanswer
 

the real moins moins a écrit :

bof, chopper le code ascii d'un caractere c'est pas *si* trivial que ça. con, oui, mais trivial, bah, nan.
d'ailleurs chuis même sur à 100% de pouvoir le faire les yeux fermer sans vérifier mon truc


Et là tout de suite tu ferais comment? [:gilbert gosseyn]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1171122
gatsusat
Posté le 05-08-2005 à 22:56:43  profilanswer
 

masklinn a écrit :

Et là tout de suite tu ferais comment? [:gilbert gosseyn]


 
en me mettant un doigt dans le cul et en faisant la toupie

n°1171124
the real m​oins moins
Posté le 05-08-2005 à 23:05:48  profilanswer
 

[:mlc]
 
(masklinn : en castant un char en int?)

mood
Publicité
Posté le 05-08-2005 à 23:05:48  profilanswer
 

n°1171126
gatsusat
Posté le 05-08-2005 à 23:08:10  profilanswer
 

the real moins moins a écrit :

[:mlc]
 
(masklinn : en castant un char en int?)


chais pas pourquoi vous appeler ça caster, j'ai toujours parlé de transtypage

n°1171128
masklinn
í dag viðrar vel til loftárása
Posté le 05-08-2005 à 23:08:48  profilanswer
 

the real moins moins a écrit :

(masklinn : en castant un char en int?)


(ça a l'air d'être ça, le premier truc que j'ai trouvé était un "Integer.toString(character)" mais ça inclut le reformatting en string pour affichage)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Spoiler :

en python il suffit de faire ord(character) [:neowen]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1171129
masklinn
í dag viðrar vel til loftárása
Posté le 05-08-2005 à 23:12:20  profilanswer
 

gatsusat a écrit :

chais pas pourquoi vous appeler ça caster, j'ai toujours parlé de transtypage


http://en.wikipedia.org/wiki/Cast_ [...] science%29 :sarcastic:


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1171135
the real m​oins moins
Posté le 05-08-2005 à 23:25:46  profilanswer
 

masklinn a écrit :

(ça a l'air d'être ça, le premier truc que j'ai trouvé était un "Integer.toString(character)" mais ça inclut le reformatting en string pour affichage)


euh, cette méthode prend un int.

n°1171137
masklinn
í dag viðrar vel til loftárása
Posté le 05-08-2005 à 23:27:57  profilanswer
 

the real moins moins a écrit :

euh, cette méthode prend un int.


C'est ce que je dis, donc il y a sûrement un cast implicite, le character java doit être peu ou prou équivalent au character C/C++ (un subset de l'int) [:spamafote]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1171146
the real m​oins moins
Posté le 05-08-2005 à 23:45:29  profilanswer
 

tu dis n'importe quoi, oui.

n°1171153
masklinn
í dag viðrar vel til loftárása
Posté le 05-08-2005 à 23:57:11  profilanswer
 

[:bbcmoi]  
 
C'était

Integer.toString(character)


 [:dugnou29]  
(qui implique bien un cast implicite du character en int)
(et j'ai testé histoire d'être sûr que ça fonctionne :o)


Message édité par masklinn le 05-08-2005 à 23:57:43

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  manipulation des String

 

Sujets relatifs
[JUNIT] un pti pb de syntaxe avec les String[]Transformation de string en java.sql.date
[RESOLU] Recherche d'un string dans un tableauConvertir un string en int
[debutant] enumeration et tableau de Stringstring et append
[c#] Convertir un string en floatManipulation tableau de données de type string
Manipulation de string c++VB : manipulation d'une string ...
Plus de sujets relatifs à : manipulation des String


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)