Core Java (6529)
Advanced Java (552)
Swing (223)
EJB (402)
Java Networking (49)
Hibernate (1009)
Spring Framework (1486)
Java J2EE AllOther (116) public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
2343MY code is: public class P1{
public static void main(String ar[])
{
class.forName("java.lang.String");
}
}
errors i got are :New.java:5: error:
Can you write a java class that could be used both as an applet as well as an application?
Explain about oops concepts.
What are some disadvantages of storing session state in cookies?
What does java ee stand for?
How to generate a thread dump?
5 Coding best practices you learned in java?
Why swings are called lightweight components?
What is applicationscoped?
Are struts and shocks the same?
Explain oops concepts in detail?
Why are http servlets used in programming?
What is second level caching?
What are advice, aspect, join-point and point cut in spring?
What is the string function?
What inbuilt themes are provided by struts2?