F
F
fenix4542014-12-08 00:19:19
Java
fenix454, 2014-12-08 00:19:19

Is there an alternative to System.out.printf?

You need to display the following code in the application

System.out.printf("\n x=%.1f  f(x)=%.1f", x, f(x));

how to do this, through the TextView does not work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moxa, 2014-12-08
@fenix454

String.format("\nx=%.1f f(x)=%.1f", x, f(x)); ?

A
Andrey Sklyarov, 2014-12-09
@coder1cv8

LogCat.d("TAG","Text"); ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question