File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

colors for first six rows

 
Ganeshkumar cheekati
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if(lstData.size()>0){
String sTdColor = "#D2D6D9";
int Q1index = 0,Q2index = 0,Q3index = 0,Q4index = 0,Q5index = 0,Q6index = 0 ;
for(int i=0;i<lstData.size();i++){
if((i%2)==0){
System.out.println("i value="+i);
System.out.println("i%2 value="+(i%2));
System.out.println("number for colour"+((i%2)==0));
sTdColor = "#ffebbb";
}else{
System.out.println("i value="+i);
System.out.println("i%2 value="+(i%2));
System.out.println("number for colour"+((i%2)==0));
sTdColor = "#fcf9f2";
}>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic