CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

help java : ou ; et

tomtex
tomtex
Niveau 8
04 octobre 2008 à 12:04:43

salut, j'ai un problème en java :

voilà ma condition :
...
if (s.charAt(i)=='*' && p[np]=='+' || s.charAt(i)=='*' && p[np]=='-' || s.charAt(i)=='/' && p[np]='+' || s.charAt(i)=='*' && p[np]=='-' || p[np]==')' || p[np]=='(')
...

et le compilateur le dit :
operator || cannot be applied to char,boolean
operator && cannot be applied to boolean,char

donc comment je peux faire autrement ?

tomtex
tomtex
Niveau 8
04 octobre 2008 à 12:05:04

merci d'avance

tomtex
tomtex
Niveau 8
04 octobre 2008 à 12:09:42

finalement c'est bon ; j'avais juste oublié un double égal à un endroit.
problème résolu.
___________________

Sous forums
  • Aide à l'achat Mac
  • Création de sites web
  • Internet
  • Macintosh
  • Création de Jeux
  • Linux
  • Programmation
  • Steam Deck
  • Hardware
La vidéo du moment