Why the result of the code below comes out to be -" main initializer"
class A
System.out.println("intializer");
public sstatic void main(String [] args)
System.out.println("main");
A ob= new A();
}
vin-gayatri wrote:
what is the difference between constructor and instance innitializer then???A constructor can take arguments. An instance initializer cannot. All instance initializers are always called for every new instance created, in the order they appear in the source code, before the body of any constructor is executed. You specify exactly one constructor to execute, and any constructor may or may not explicitly invoke one other constructor.
Similar Messages
-
Please help with my problem. I need to start recording!!
Chris Huber wrote:
Why does my Alesis ioj2 express only come out through one side?
http://www.bulletsandbones.com/GB/GBFAQ.html#leftspeakeronly
(Let the page FULLY load. The link to your answer is at the top of your screen) -
I could not update photoshop CS6 and Jeff from forum advised unistalling and reinstalling (Tk93580659). Mac OSX. In real trouble, as suggested I uninstalled and reinstalled but at the end of installation there were errors. See attached screen shot. Now I cannot open the application. Error code 10810 comes up when I try to open (see 2nd screenshot). Please help. I have now lost photoshop altogether whereas previous at least I still could use it but could not update. Thank you for any help to instal successfully. Dr Koh
Still looking for a solution to specific installation errors (see screeshot) referring to "Language Pack installation failure":
ERROR: DW050: The following payload errors were found during install:
ERROR: DW050: - Adobe Photoshop CS6 Core: Failed due to Language Pack installation failure
ERROR: DW050: - Adobe Photoshop CS6 International English Language Pack_AdobePhotoshop13-en_GB: Install failed
Unfortunately previous advice of using CCS cleaner tool, and suggestions from links for 1) "exit code 6 and 7" and 2) "Troubleshoot instal logs" did not work at all. So I am desparate to fix this because I have spent a lot of money purchasing Photoshop CS6 but have no functioning program. Surely Adobe can help solve this problem with installing, or else it means a lot of money spent on Photoshop CS6 for nothing. I am appealing directly to Adobe to help because I have come to the end of my options. I thank the forum for their suggestions but so far the solution for this specific "Language Pack installation failure" problem is missing. Thank you.
Dr Koh -
As I see the below come out to market as download
As I see the below come out to market as download, when about
dvdrom version will come out ? When about trial will come out ?
Adobe Creative Suite 4 Web Premium
Delivery Method
Download
This product is only available as a download version.dvdrom will come for USA and Europe same date or differ dates
? -
Hi,
I am doing development in sharepoint 2010 and facing this very weird problem.
If I create a site page with the sharepoint look and feel for that site and try to save the site page,i am getting this error:**"Content in the embedded form may be changed by the the server to remove unsafe content.Do you want to reload your page to see
the results of the save? "** and when i say reload,the server removes some parts of my page, e.g onclick event of html,asp buttons.
This error just comes for any sharepoint site page,e.g i took a copy of 'How To Read Library' page just edited the text part of taht page,and when i try to save this error again comes up.
However,if i create a simple aspx page with only htmltags like head body,then thr is no problem ,everything works great. But sharepoint look and feel pages are giving troubles while saving.
has anybody seen this earlier,what could be the reason for this?
ThanksI think the excerpt and link below is the why, but the page talks about server code and not javascript. I guessing that this is why blank pages work, but not wiki pages. Can anyone verify this?
The following are general rules for using server-side code on a site page.
If the page is uncustomized, server-side code is supported on the page.
If the page is customized, server-side code does not run, and the page does not render. This includes the code-behind for the page itself.
http://msdn.microsoft.com/en-us/library/office/aa979592(v=office.14).aspx -
The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
pear to be working or at least I am not getting any indication on the inidcator.
Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
Attachments:
regulation_tester_7_loops.vi 244 KBI didn't really have time to dig in and understand your program in depth,
but I have a few tips for you that might things a bit easier:
- You use local variables excessively which really complicates things. Try
not to use them and it will make your life easier.
- If you flowchart the design (very similar to a dataflow diagram, keep in
mind!) you want to gather data, calculate a value from that data, store the
calculation in an array, and loop while the time is in a certain range. So
theres really not much need for a sequence as long as you get rid of the
local variables (sequences also complicate things)
- You loop again if timepassed+1 is still less than some constant. Rather
than messing with locals it seems so much easier to use a shiftregister (if
absolutely necessary) or in this case base it upon the number of iterations
of the loop. In this case it looks like "time passed" is the same thing as
the number of loop iterations, but I didn't check closely. There's an i
terminal in your whileloop to read for the number of iterations.
- After having simplified your design by eliminating unnecessary sequence
and local variables, you should be able to draw out the labview diagram.
Don't try to use the "insert into array" vis since theres no need. Each
iteration of your loop calculates a number which goes into the next position
of the array right? Pass your result outside the loop, and enable indexing
on the terminal so Labview automatically generates the array for you. If
your calculation is a function of previous data, then use a shift register
to keep previous values around.
I wish you luck. Post again if you have any questions. Without a more
detailed understanding of your task at hand it's kind of hard to post actual
code suggestions for you.
-joey
"nelsons" wrote in message
news:[email protected]...
> how do I create a 1d array that takes a single calculation and insert
> the result into the first row and then the next calculation the next
> time the loop passes that point and puts the results in thsecond row
> and so on until the loop is exited.
>
> The attached file is work inprogress, with some dummy data sp that I
> can test it out without having to connect to equipment.
> The second tab is the one that I am having the problem with. the
> output array from the replace element appears to be starting at the
> index position of 1 rather than 0 but that is ok it is still show that
> the new data is placed in incrementing element locations. However the
> main array that I am trying to build that is suppose to take each new
> calculation and place it in the next index(row) does not appear to be
> working or at least I am not getting any indication on the inidcator.
>
> Basically what I am attempting to do is is gather some pulses from
> adevice for a minute, place the results for a calculation, so that it
> displays then do the same again the next minute, but put these result
> in the next row and so on until the specifiied time has expired and
> the loop exits. I need to have all results displayed and keep building
> the array(display until, the end of the test)Eventually I will have to
> include a min max section that displays the min and max values
> calculated, but that should be easy with the min max function.Actually
> I thought this should have been easy but, I gues I can not see the
> forest through the trees. Can any one help to slear this up for me. -
How to search XML data from a HTTPMultiService and display the result on the Spark List
Hello all,
I am totally new to Flash Builder and Actionscript and hope someone might be able to help me out. I basically create a mobile app with a single view. The view has a TextInput as a search box and a search button. I conntected a Data/Service using a local XML file and bind the Data to a Spark List. Innitally the List will show nothing until the user enter the search term and hit the button. The List suppose to show the XML data that match the search term.
Now is my problem. I cannot make the List to show the data that match the search text. The List just shows ALL the data.
Here are my MXML code:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:shopping="services.shopping.*"
title="Search">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function button1_clickHandler(event:MouseEvent):void
navigator.popView();
protected function list_creationCompleteHandler(event:FlexEvent):void
getDataResult.token = shopping.getData();
protected function seach_clickHandler(event:MouseEvent):void
getDataResult.token = shopping.getSearchData(searchTxt.text);
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="getDataResult"/>
<shopping:Shopping id="shopping"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:actionContent>
<s:Button height="79" label="Back" click="button1_clickHandler(event)"/>
</s:actionContent>
<s:List id="list" left="0" right="0" top="111" bottom="0"
creationComplete="list_creationCompleteHandler(event)" labelField="english">
<s:AsyncListView list="{getDataResult.lastResult}"/>
</s:List>
<s:TextInput id="searchTxt" x="80" y="34" width="250" height="49" enabled="true"
prompt="search..."/>
<s:Button id="search" x="338" y="35" width="72" height="49" label="s"
click="seach_clickHandler(event)"/>
</s:View>
Here is the _Super_Shopping.as file:
* This is a generated class and is not intended for modification. To customize behavior
* of this service wrapper you may modify the generated sub-class of this class - Shopping.as.
package services.shopping
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;
import com.adobe.serializers.xml.XMLSerializationFilter;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.http.HTTPMultiService;
import mx.rpc.http.Operation;
import valueObjects.Shop;
[ExcludeClass]
internal class _Super_Shopping extends com.adobe.fiber.services.wrapper.HTTPServiceWrapper
private static var serializer0:XMLSerializationFilter = new XMLSerializationFilter();
// Constructor
public function _Super_Shopping()
// initialize service control
_serviceControl = new mx.rpc.http.HTTPMultiService();
var operations:Array = new Array();
var operation:mx.rpc.http.Operation;
var argsArray:Array;
operation = new mx.rpc.http.Operation(null, "getData");
operation.url = "assets/data/shopping.xml";
operation.method = "GET";
operation.serializationFilter = serializer0;
operation.properties = new Object();
operation.properties["xPath"] = "/::shop";
operation.resultElementType = valueObjects.Shop;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "getSearchData");
operation.url = "assets/data/shopping.xml";
operation.method = "GET";
operation.resultFormat = "text";
argsArray = new Array("item");
operation.argumentNames = argsArray;
operation.properties = new Object();
operation.properties["xPath"] = "/::shop";
operation.resultElementType = valueObjects.Shop;
operations.push(operation);
_serviceControl.operationList = operations;
preInitializeService();
model_internal::initialize();
//init initialization routine here, child class to override
protected function preInitializeService():void
* This method is a generated wrapper used to call the 'getData' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
public function getData() : mx.rpc.AsyncToken
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getData");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
return _internal_token;
public function getSearchData(item:String) : mx.rpc.AsyncToken
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getSearchData");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(item);
return _internal_token;
The getSearchData() supposed to return XML data that match the search text, but it doesn't. Can anyoen help?
Thank you!Hi,
are you able to change dynamically the operation.url = "assets/data/shopping.xml";?
i need to do that based on the users input.
Thanks in advance, -
SSIS question - Email the results of the table in pipe delimited format to the users
I am new to SSIS and I have a requirement. I have a sales table that has transactions for all months. I am trying to automate the process which involves following steps:
I need to query the table based on previous month.
Email the results of the table in pipe delimited format to the users.
What I am currently doing:
I created a temp table and load the query results in it every month by truncating the previous month’s data. Saved the query results in excel format. Open the excel and save it in csv format. Use SSIS package to convert csv to txt format and email
them manually with the txt file name as “Salesresults_<previousmonth>.
I just want to automate this process but the main challenge comes up with email with txt attached. Please help me out.First create a SSIS variable(@[User::Path]) that store folder path as "C:\Test".
Select the "Expression" tab in Send Mail Task Editor and select the appropriate property(FileAttachments) and assign the below expression.
@[User::Path] + "\\Salesresults_" + (DT_WSTR, 10) MONTH( GETDATE() ) + (DT_WSTR, 10) YEAR( GETDATE() ) + ".txt"
Regards, RSingh -
I'm wondering if there is any way to view the results of the form other than in a table? Is it possible to print responses one by one in PDF format, or word, etc? I'd like to create a form for proposal applications, and the spreadsheet format results are nearly unusable for this type of form.
Hi Nalani500 ,
Yes, you can print the response in a PDF by following the steps suggested below.
1) Go to the response file
2) Select the response you want to print
3) Click on Save as PDF button and it would save the selected response in PDF format.
Thanks,
Vikrantt Singh -
Call a JSP from applet and display the results in the browser
Hello All,
I have written an applet which performs some functionality at the clinets browser. When the applets method finishes exectution, I would like to call
a jsp. The results of the JSP should be displayed like a normal page in the browser.
I tried creating a HttpURLConnection and calling the jsp but two things happened
1. The jsp call failed because the applet doesn't have a valid session id.
2. even if I disable the valid user check at the jsp, the results of the jsp are returned as a set of bytes to the applet. They are not displayed in the browser window.
Then I tried applet.getAppletContext().showDocument()... However with this api I cannot do a POST operation on the JSP with some input data because this takes only a URL as an input parameter.
Please help me in this problem and I will be very gratefull to you.
1. applet uses the same session id as the browser so that when applet makes a request to the jsp it does not get user invalid exception.
2. the results of the jsp are displayed on the browser and not given to the applet.
Thank you so much for your help.
regards,
Abhishek.I hope this can help you
I made a package calls fun
and a clsss calls JspTestingFun
package fun;
public class JspTestingFun{
private String sample = "welcome to jsp";
//Access sample property
public String getSample() {
return sample;
//Access sample property
public void setSample(String newValue) {
if (newValue!=null) {
sample = newValue;
}then I make a jsp file
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
<%@ page import = "fun.JspTestingFun"%>
<html>
<head>
<title>
jspTest
</title>
</head>
<jsp:useBean id="mytest" scope="session" class="fun.JspTestingFun" />
<jsp:setProperty name="mytest" property="*" />
<body bgcolor="#ffffff">
<%
mytest.getSample();
%>
<h1>
Just for testing
</h1>
<form method="post">
<br>Enter anything : <input name="sample"><br>
<br><br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Reset">
<br>
this what we get<jsp:getProperty name="mytest" property="sample" />
</form>
</body>
</html> -
Hello. My iphone 4, iOS 6.1.3 gone wild....everything is going in slow motion, every app i open is running in frames...i tried reseting the handset, with back-up, without backup(as a new iPhone) and the result is the same. My battery percentage is going down down down only by looking at my phone, imess is making me crazy, after i write the name for the recipient the keyboard appears after 2 min...and the list is looooong...everything is gone wild ! Why? What can i do ?
I'm having similar issues just lately. The phone itself is very slow to respond to the touch, just scrolling between home screens is a chore at times. There have been about 2 incidents of random vibration from it. Closing home screen folders takes a couple of attempts. I find that I'm also having delayed keyboard responses when typing messages to my contacts.
Also, sometimes when I press the sleep/wake button it takes about 30 seconds to register it and actually lock or wake up.
Have you experienced the backlight failing to light up? Like if I get a message it flashes up then goes black straight after and when you press the sleep/wake or home button it lights up again but very very dimly and you have to press the sleep/wake button as if locking it and then press it again to bring the screen up properly?
Mine is also on 6.1.3(10B329), model MD245B/A, obviously not Jailbroken, carrier unlocked from Vodafone (but that was months and months ago). Roughly 17gb of storage space left.
This has only started happening in the last 2 weeks. Haven't tried the reset or anything yet though. -
How to display the results of the grouping horizontally
Hello,
I still cannot understand what am I doing wrong when trying to display the results of the grouping horizontally. Here is the original thread: How to group report vertically
In the Section expert, for Detail section, I check the box Format with Multiple columns. Under the Layout tab, I check Format groups with multiple columns and set the width of the column at 3.3 in. This should give me 3 columns for Landscape orientation.
Now if I select Printing direction Down then Across, I just have the regular vertical grouping.
If I check Across then Down, then I do get 3 columns, but all the records in the Detail section are also spread across first instead of staying in the column.
There should be something else that I should do to get the display like this:
Header1 Header2 Header3
record11 record21 record31
record12 record22 record32
record13 record23 record33
etc. etc. etc.
Thank you.I'm not at all sure columns are gonna help here, as there is no way that I am aware of to tell Crystal to start a new column.
The only way that I can think of to achieve what you are trying to accomplish is to do something like this:
In your group header's Suppress formula, keep track of the first (/ next) three groups that you want to print, using something like (basic syntax):
global grouplist(3) as string
global groupcount as number
groupcount = groupcount + 1
grouplist(groupcount) = {db.GroupingField}
' The NextIsNull below implies End-of-Data...
if groupcount = 3 or NextIsNull({db.GroupField}) then
formula = false ' print the group header
else
formula = true ' suppress the group header
end if
Then, create three formula fields to get each value in grouplist(). The group header format will then show the three formula fields. Underneath these three formula fields, add subreports, which will show the details for one specific group. The subreports should have a parameter for which group's details to show. Use the three formula fields as the link to the three subreports.
In the group footer, clear out the grouplist() array, and set groupcount to zero.
This report will take a while to run, because having three subreports next to each other makes it difficult for Crystal to determine page formatting.
HTH,
Carl -
where is it at?.....its July 20, and i dont see nada??? what in the **** bobby??? umm my iphone os updates the big ones anyway used to come out at midnight.......yea?
Then, you need to sharpen your search skills. A google search for Lion ships today brings up many hits, with this one mentioning a time: http://isource.com/2011/07/19/confirmed-os-x-lion-ships-tomorrow/
-
where is it at?.....its July 20, and i dont see nada??? what in the **** bobby??? umm my iphone os updates the big ones anyway used to come out at midnight
FWIW, this is a user forum. We are all users like you. No Apple employees here and Apple doesn't follow these forums. You aren't speaking to Apple here.
-
i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???
If Join was on then your home wi-fi must be set to Non-Broadcast. If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used. The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID . Basically it is the name used to identify your router/network. A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default. Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in. HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you. You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files. Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.
Maybe you are looking for
-
While uploading my family Christmas photos, my computer went completely blank. When it started back up again, I had a message that iPhoto had been damaged and needed to be corrected. So I let it restore and it took several minutes. Then I had a me
-
hi all , please help on this.. I have developed one swing application in that one button is there the function of the button is to send the values to server .. the problem is If i press the button it takes some time to send values to server .. So is
-
I am trying to compare two schemas running (both) in Oracle 11g. Is there any tool in Oracle to do that? SQLDeveloper? I tried with a tool called TOAD and I got a report saying that there was no difference. But we know for sure at least one procedure
-
Websites read my macbook pro as a mobile device. How do I fix this?
This has been going on for as long as I've had my Macbook Pro (May 2011)--AND since before I recently updated my operating system to Mavericks from Snow Leopard. It's getting really annoying. It used to be that just the MGM Resorts properties in Las
-
Transfer documents to another system including their attachments
Hello, I have to transfer documents/attachments (from archive and SO) to another system. Therefor I have to export the documents/attachments to the application server (unix) and import them in the target system. My problem: I found function modules a