| | |
Random Java Info
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi!
I have some questions on Java:
Write a literal representing the largestcharacter value .
I think the aswer is:
Del
1 more question:
You are given a class named Clock that has three instance variables : One of type int called hours , another of type boolean called isTicking , and the last one of type Integer called diff . Write a constructor for the class Clock that takes three parameters -- an int , a boolean , and another int . The constructor should set the instance variables to the values provided.
U think the ans. is:
public Clock ( int hours, boolean isTicking, Integer diff )
{
this.hours = hours;
this.isTicking = isTicking;
this.diff = diff.clone();
}
Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have some questions on Java:
Write a literal representing the largestcharacter value .
I think the aswer is:
Del
1 more question:
You are given a class named Clock that has three instance variables : One of type int called hours , another of type boolean called isTicking , and the last one of type Integer called diff . Write a constructor for the class Clock that takes three parameters -- an int , a boolean , and another int . The constructor should set the instance variables to the values provided.
U think the ans. is:
public Clock ( int hours, boolean isTicking, Integer diff )
{
this.hours = hours;
this.isTicking = isTicking;
this.diff = diff.clone();
}
Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
![]() |
Similar Threads
- new to Java (Java)
- How to Find System Info Through Java (Java)
- JAVA TOMCAT "HTTP Status 500 error" help (JSP)
- Display random image from database and... (PHP)
- Class Passing and Returning Arrays (Java)
Other Threads in the Java Forum
- Previous Thread: '[Class] is not abstract..' error when i use 'implements'
- Next Thread: Help w/ constructors
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api append apple applet application arguments array arrays automation bi binary bluetooth businessintelligence busy_handler(null) chat class classes client code component database draw eclipse encryption equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop main map method methods mobile netbeans newbie number open-source oracle oriented panel print problem program programming project qt recursion reference replaysolutions repositories return robot scanner screen scrollbar se server set singleton size sms socket sort sql string swing test threads time tree utility windows xor





