Changing the place of the values (terms) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Changing the place of the values (terms)

Is there any operation to change the place of the values automatically not by writing again the "functions" for example a=2, b=1, a/b=2 so i want to change terms order for example b/a=0.5. https://code.sololearn.com/cZ667RRYjrYm/?ref=app

17th Apr 2017, 7:04 PM
Rareş Daniel
Rareş Daniel - avatar
11 Réponses
+ 12
You can only change the background color there, not the text colors. Maybe try to find an ide that fits your needs ^^ Eclipse, Netbeans (...) or a text editor.
17th Apr 2017, 7:42 PM
Tashi N
Tashi N - avatar
17th Apr 2017, 8:12 PM
Tashi N
Tashi N - avatar
+ 12
Too hard to write these method? Here are some good implementations http://stackoverflow.com/questions/3624525/how-to-write-a-basic-swap-function-in-java * Idk how tall @Very hard is... *
17th Apr 2017, 7:31 PM
Tashi N
Tashi N - avatar
+ 10
Text color of what? Gui (if so: which API do you use?), console, syntax highlighting in ide?
17th Apr 2017, 7:33 PM
Tashi N
Tashi N - avatar
+ 10
Your welcome ^^ So you mean syntax highlighting. Do you use an ide (then which ide) or the code playground?
17th Apr 2017, 7:40 PM
Tashi N
Tashi N - avatar
+ 9
You could write your own swap method and use it whenever you like.
17th Apr 2017, 7:22 PM
Tashi N
Tashi N - avatar
0
it looks like it is a little very hard :)
17th Apr 2017, 7:26 PM
Rareş Daniel
Rareş Daniel - avatar
0
how can i change text color in java, should i use another programming language?
17th Apr 2017, 7:30 PM
Rareş Daniel
Rareş Daniel - avatar
0
i mean, in the file above, i would like to write with another colour, is it possible? You are a kind of programming fairy, because you allways help, thanks :))
17th Apr 2017, 7:39 PM
Rareş Daniel
Rareş Daniel - avatar
0
only the code playground.
17th Apr 2017, 7:41 PM
Rareş Daniel
Rareş Daniel - avatar
0
what is modulo "%" in fact, because it looks like it is percentage but it is not. How can we calculate it? a=2 b=1 a%b=0
17th Apr 2017, 7:52 PM
Rareş Daniel
Rareş Daniel - avatar