Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Caleb Smith   on Feb 09 In Java Category.

  
Question Answered By: Adalric Fischer   on Feb 09

you maybe want to write "System.out.println(x);" with parametric x values..

public static void main(String[] args)
{
int x;
String str;

for (x=0; x<5; x++) {
str = "System.out.println("+x+");";
System.out.println(str);
}
}

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on how to execute a statement Or get search suggestion and latest updates.


Tagged: